From: Roland Dreier Date: Wed, 20 Jul 2011 09:09:10 +0000 (+0000) Subject: target: Make transport_lookup_cmd_lun() locking IRQ-safe X-Git-Tag: v3.1-rc1~305^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78faae37897dc2a9ccc7c19155294a4bfdcae077;p=pandora-kernel.git 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 Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed