]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target: Prevent transport_send_task_abort when CHECK_CONDITION status
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 29 Sep 2011 21:22:13 +0000 (14:22 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:42:32 +0000 (09:42 -0800)
commit6f47552250e7d3a1bab3e75cc9e36015a7fa93f9
tree0069f0a86520b2c886c483a2dd5c52798caea19a
parent15e2ab5ff4e52cfe76eab123655701ab623aeeb8
target: Prevent transport_send_task_abort when CHECK_CONDITION status

commit c252f003470a99d319db4ebd12f4a9e4710a65db upstream.

This patch fixes a bug where transport_send_task_abort() could be called
during LUN_RESET to return SAM_STAT_TASK_ABORTED + tfo->queue_status(), when
SCF_SENT_CHECK_CONDITION -> tfo->queue_status() has already been sent from
within another context via transport_send_check_condition_and_sense().

Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/target/target_core_transport.c