summaryrefslogtreecommitdiff
path: root/include/scsi/scsi_common.h
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2015-07-08 17:58:51 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2015-07-24 08:09:28 +0300
commitab78fef4d5f79134042ae0e1e2c259e1226aa5bd (patch)
treea4a1c6a4f79878c412692842c8c278dc29263592 /include/scsi/scsi_common.h
parent46d5bd62ef9e3d6e2018963cbb725c91f864922d (diff)
downloadlinux-ab78fef4d5f79134042ae0e1e2c259e1226aa5bd.tar.xz
target: Split transport_send_check_condition_and_sense()
Move the code for translating a sense_reason_t code into a SCSI status ASC and ASCQ codes from transport_send_check_condition_and_sense() into the new function translate_sense_reason(). Convert the switch statement that performs the translation into table-driven code. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/scsi/scsi_common.h')
0 files changed, 0 insertions, 0 deletions