diff options
author | Roland Dreier <roland@purestorage.com> | 2011-07-20 05:09:10 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-07-22 05:37:45 -0400 |
commit | 78faae37897dc2a9ccc7c19155294a4bfdcae077 (patch) | |
tree | 36db87c44506bd34da1d21633dbfe1e59de40910 /net/ax25 | |
parent | 07bde79a5c355dbca66ca4318645aa17b4c0d859 (diff) |
target: Make transport_lookup_cmd_lun() locking IRQ-safe
transport_lookup_cmd_lun() may be called from interrupt context (eg
tcm_loop_allocate_core_cmd() calls it, and it has a comment that says,
"Can 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.
(And indeed the last set of lock operations, on lun_cmd_lock, were
already using spin_lock_irqsave(), so we just need to fix the other
two locks we take)
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'net/ax25')
0 files changed, 0 insertions, 0 deletions