]> git.baikalelectronics.ru Git - kernel.git/commit
target: Fix handling of aborted failed commands
authorBart Van Assche <bart.vanassche@sandisk.com>
Wed, 15 Feb 2017 00:25:45 +0000 (16:25 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 20 Feb 2017 21:28:09 +0000 (13:28 -0800)
commitc17d4be0debd96d432340ccd9402bd11deb35577
tree84152cbdc1904bf6873ba53c565028b2cafff84f
parent8fc1f8a8f90b4884e70722bfd285da077b108e5e
target: Fix handling of aborted failed commands

If a target driver (e.g. tcm_qla2xxx) calls
transport_generic_request_failure() to report that receiving data
has failed and that SCSI command has already been aborted by the
initiator, ensure that the SCSI status ABORTED is sent back to the
initiator instead of the sense code provided by the target driver.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: David Disseldorp <ddiss@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c