target: Fix transport_cmd_finish_abort queue removal bug
commit15e2ab5ff4e52cfe76eab123655701ab623aeeb8
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 29 Sep 2011 08:01:35 +0000 (29 01:01 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:42:32 +0000 (11 09:42 -0800)
tree45a458b693fdd0fe21043812d285324b197f4203
parent4013ba5c21af68a4257729ff04b0441165ffe215
target: Fix transport_cmd_finish_abort queue removal bug

commit 77039d1eafbbc192df71ee84b157b8973766737d upstream.

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

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