]> git.baikalelectronics.ru Git - kernel.git/commit
target: Make se_dev_check_online() locking IRQ-safe
authorRoland Dreier <roland@purestorage.com>
Tue, 14 Jun 2011 03:55:06 +0000 (20:55 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 22 Jul 2011 09:37:45 +0000 (09:37 +0000)
commit6b0c2f0eff6875ff12ba2a4d9e44f33623b0094b
tree80ab54908f9cd603ef26cdcc634e70ddd34c6640
parentdfa94e603abce2daf41f5f77831e3caa2c00ad51
target: Make se_dev_check_online() locking IRQ-safe

se_dev_check_online() is called from transport_lookup_cmd_lun(), which
as discussed before may be called from interrupt context.  So it needs
to use spin_lock_irqsave() instead of spin_lock_irq() to avoid
enabling interrupts at the wrong time.

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