scsi: set sc_data_direction in common code
authorChristoph Hellwig <hch@lst.de>
Sat, 28 Jun 2014 14:41:43 +0000 (16:41 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Jul 2014 20:11:41 +0000 (22:11 +0200)
commit5158a899d8f24f74cad29b6aaad2b0f86499e5d5
treef5faad5530e2e0e38dcd0bc75777da075976fe29
parent3868cf8ea70a57fc3f927872d8296f287ce4b96a
scsi: set sc_data_direction in common code

The data direction fiel in the SCSI command is derived only from the block
request structure.  Move setting it up into common code instead of
duplicating it in the ULDs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/scsi/scsi_lib.c
drivers/scsi/sd.c
drivers/scsi/sr.c