summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_error.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2015-07-08 16:58:51 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2015-07-24 07:09:28 +0200
commitab78fef4d5f79134042ae0e1e2c259e1226aa5bd (patch)
treea4a1c6a4f79878c412692842c8c278dc29263592 /drivers/scsi/scsi_error.c
parenttarget: Inline transport_get_sense_codes() (diff)
downloadlinux-ab78fef4d5f79134042ae0e1e2c259e1226aa5bd.tar.xz
linux-ab78fef4d5f79134042ae0e1e2c259e1226aa5bd.zip
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 'drivers/scsi/scsi_error.c')
0 files changed, 0 insertions, 0 deletions