target: Use scsi helpers to build the sense data correctly
authorSagi Grimberg <sagig@mellanox.com>
Wed, 8 Jul 2015 14:58:53 +0000 (17:58 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 24 Jul 2015 05:11:08 +0000 (22:11 -0700)
commit9ec1e1ce3a0f854b9150e7888a373392fbbe7442
treedd5ef3edbd8a56455f2cf07337e38e7d74a3e041
parent7708c1656552ddd60b9b9df3a9ee156acd1801ba
target: Use scsi helpers to build the sense data correctly

Instead of open coding the sense buffer construction, use
scsi scsi_build_sense_buffer() and scsi_set_sense_information()
helpers which moved to scsi_common.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_spc.c
drivers/target/target_core_transport.c