]> 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)
commit81abfe940eb910e1f0ba86ed64545aa9c12a4337
tree50b987bb753e481fd0d921e5723deacd17f5a97f
parent8615fa220975a4d44841a0cafe4a9a4c8320b735
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