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)
commit5e1be919820175a2becc3c72051050aaa3fae954
tree50b987bb753e481fd0d921e5723deacd17f5a97f
parent56e34ee2adb59a35bfa5714bdf4dcb3f4d14a41d
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