diff options
author | 2011-07-20 09:09:10 +0000 | |
---|---|---|
committer | 2011-07-22 09:37:45 +0000 | |
commit | 78faae37897dc2a9ccc7c19155294a4bfdcae077 (patch) | |
tree | 36db87c44506bd34da1d21633dbfe1e59de40910 /fs/stack.c | |
parent | target: Add SCF_EMULATE_QUEUE_FULL -> transport_handle_queue_full (diff) | |
download | wireguard-linux-78faae37897dc2a9ccc7c19155294a4bfdcae077.tar.xz wireguard-linux-78faae37897dc2a9ccc7c19155294a4bfdcae077.zip |
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 'fs/stack.c')
0 files changed, 0 insertions, 0 deletions