aboutsummaryrefslogtreecommitdiffstats
path: root/Kbuild
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-05-19 23:19:10 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2011-05-27 07:49:25 -0400
commit1e7de68c57daf75ec4b721f101f88cccf029e38c (patch)
tree730f6aa856ab971dfaea53a018a5fa61e67c1925 /Kbuild
parent4a8fcc2cc34b7546584bf9ebd8f0caf433e4736e (diff)
[SCSI] target: Fix interrupt context bug with stats_lock and core_tmr_alloc_req
This patch fixes two bugs wrt to the interrupt context usage of target core with HW target mode drivers. It first converts the usage of struct se_device->stats_lock in transport_get_lun_for_cmd() and core_tmr_lun_reset() to properly use spin_lock_irq() to address an BUG with CONFIG_LOCKDEP_SUPPORT=y enabled. This patch also adds a 'in_interrupt()' check to allow GFP_ATOMIC usage from core_tmr_alloc_req() to fix a 'sleeping in interrupt context' BUG with HW target fabrics that require this logic to function. Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org> Cc: stable@kernel.org Signed-off-by: James Bottomley <jbottomley@parallels.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions