]> git.baikalelectronics.ru Git - kernel.git/commit
target: Fix transport_cmd_finish_abort queue removal bug
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 29 Sep 2011 08:01:35 +0000 (01:01 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:20:01 +0000 (03:20 +0000)
commit6a2e60a50a7446b9f91a3cb2449019955f2fe641
treec2066c32153765fa1a605d02ec1861dd6ee85ec5
parent714b074aa707bc1cf458cd98bad62f871e4b8d69
target: Fix transport_cmd_finish_abort queue removal bug

This patch fixes a bug in LUN_RESET operation with transport_cmd_finish_abort()
where transport_remove_cmd_from_queue() was incorrectly being called, causing
descriptors with t_state == TRANSPORT_FREE_CMD_INTR to be incorrectly removed
from qobj->qobj_list during process context release.  This change ensures the
descriptor is only removed via transport_remove_cmd_from_queue() when doing a
direct release via transport_generic_remove().

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