summaryrefslogtreecommitdiffstats
path: root/include/target/iscsi
diff options
context:
space:
mode:
authorAlex Leung2014-03-22 06:20:41 +0100
committerNicholas Bellinger2014-04-07 10:48:50 +0200
commit68259b5aac13a57cba797b9605ed9812158f0e72 (patch)
tree914de31ac9381cb8a1f591af859ab91adaeee4db /include/target/iscsi
parentiser-target: Match FRMR descriptors to available session tags (diff)
downloadkernel-qcow2-linux-68259b5aac13a57cba797b9605ed9812158f0e72.tar.gz
kernel-qcow2-linux-68259b5aac13a57cba797b9605ed9812158f0e72.tar.xz
kernel-qcow2-linux-68259b5aac13a57cba797b9605ed9812158f0e72.zip
target: Fix Task Aborted Status (TAS) handling
This patch addresses three of long standing issues wrt to Task Aborted Status (TAS) handling. The first is the incorrect assumption in core_tmr_handle_tas_abort() that TASK_ABORTED status is sent for the task referenced by TMR ABORT_TASK, and sending TASK_ABORTED status for TMR LUN_RESET on the same nexus the LUN_RESET was received. The second is to ensure the lun reference count is dropped within transport_cmd_finish_abort() by calling transport_lun_remove_cmd() before invoking transport_cmd_check_stop_to_fabric(). The last is to fix the delayed TAS handling to allow outstanding WRITEs to complete before sending the TASK_ABORTED status. This includes changing transport_check_aborted_status() to avoid processing when SCF_SEND_DELAYED_TAS has not be set, and updating transport_send_task_abort() to drop the SCF_SENT_DELAYED_TAS check. Signed-off-by: Alex Leung <amleung21@yahoo.com> Cc: Alex Leung <amleung21@yahoo.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target/iscsi')
0 files changed, 0 insertions, 0 deletions