summaryrefslogtreecommitdiffstats
path: root/drivers/target/tcm_fc/Kconfig
diff options
context:
space:
mode:
authorBart Van Assche2015-07-08 16:58:51 +0200
committerNicholas Bellinger2015-07-24 07:09:28 +0200
commitab78fef4d5f79134042ae0e1e2c259e1226aa5bd (patch)
treea4a1c6a4f79878c412692842c8c278dc29263592 /drivers/target/tcm_fc/Kconfig
parenttarget: Inline transport_get_sense_codes() (diff)
downloadkernel-qcow2-linux-ab78fef4d5f79134042ae0e1e2c259e1226aa5bd.tar.gz
kernel-qcow2-linux-ab78fef4d5f79134042ae0e1e2c259e1226aa5bd.tar.xz
kernel-qcow2-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/target/tcm_fc/Kconfig')
0 files changed, 0 insertions, 0 deletions