]> git.baikalelectronics.ru Git - kernel.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)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:20:12 +0000 (03:20 +0000)
commit26711ade36b07a46bd33a0d515f1e4e118afc8ed
tree4874bcd5c62a8c45750c8e28ace14fa8c717e6ed
parent6a2e60a50a7446b9f91a3cb2449019955f2fe641
target: Prevent transport_send_task_abort when CHECK_CONDITION status

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().

Cc: stable@kernel.org
Signed-off-by: Nicholas Bellinger <nab@risingtidesystems.com>
drivers/target/target_core_transport.c