]> git.baikalelectronics.ru Git - kernel.git/commit
target: Make se_tmr_lock IRQ-safe
authorRoland Dreier <roland@purestorage.com>
Wed, 20 Jul 2011 09:28:56 +0000 (09:28 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 22 Jul 2011 09:37:45 +0000 (09:37 +0000)
commitb52a18691d8e70f37d7ee84a9902af5e8ae889c3
tree50b987bb753e481fd0d921e5723deacd17f5a97f
parent6b0c2f0eff6875ff12ba2a4d9e44f33623b0094b
target: Make se_tmr_lock IRQ-safe

transport_lookup_tmr_lun() can be called from interrupt context and
therefore needs to use IRQ-safe spinlock functions.  Fix this up, and
to make the locking work, convert the other uses of se_tmr_lock to be
IRQ-disabling.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_device.c
drivers/target/target_core_tmr.c