]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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:18:29 +0000 (13:18 -0800)
commitf2679244f79202bed2173078da75f62d0c28ae0a
treed620bb747b51b2bb2c5a98e1cc7bdfd29ebeaddb
parent10b43f97a965ccb8ec6c0e7a841eecceb4326f83
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