target: Fix incorrect usage of nested IRQ spinlocks in ABORT_TASK path
authorSteve Hodgson <steve@purestorage.com>
Wed, 31 Oct 2012 17:24:02 +0000 (10:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Nov 2012 21:15:55 +0000 (13:15 -0800)
commitbfc5de3bc907e97b9aabce6d6517a55d5ed6d791
tree9b18db8668193c999e607f89be27d619d46bfcaf
parent7f83bc1f1bff2e9b89b3a505750b067f0073fe5c
target: Fix incorrect usage of nested IRQ spinlocks in ABORT_TASK path

commit ab74b3d62f05192bf8fb8f169e7999d1183b2e08 upstream.

This patch changes core_tmr_abort_task() to use spin_lock -> spin_unlock
around se_cmd->t_state_lock while spin_lock_irqsave is held via
se_sess->sess_cmd_lock.

Signed-off-by: Steve Hodgson <steve@purestorage.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/target_core_tmr.c