scsi: add scsi_setup_cmnd helper
authorChristoph Hellwig <hch@lst.de>
Tue, 8 Jul 2014 11:16:17 +0000 (13:16 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 11:38:08 +0000 (07:38 -0400)
commit6af7a4ffa2775c452c77eccc6bb6a4e2b71c2371
treea02a81dcd071c343d85cb19bcd25657b3edf53c2
parent4f1e57657548d7afb4a6b62097765282f3b03c6e
scsi: add scsi_setup_cmnd helper

Factor out command setup code that will be shared with the blk-mq code path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Webb Scales <webbnh@hp.com>
drivers/scsi/scsi_lib.c