summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-11-14 22:06:09 (GMT)
committerScott Wood <scottwood@freescale.com>2014-05-14 18:38:46 (GMT)
commitd24de3e1dad4316aec4b157cfe8495f63a98e84b (patch)
tree40126ec0365b47e4e8c4c8b4a20b0e5bc1697059 /drivers/md
parent418c2c71b9474214ff625332bc1b9c93adab87c4 (diff)
downloadlinux-fsl-qoriq-d24de3e1dad4316aec4b157cfe8495f63a98e84b.tar.xz
dm: Make rt aware
Use the BUG_ON_NORT variant for the irq_disabled() checks. RT has interrupts legitimately enabled here as we cant deadlock against the irq thread due to the "sleeping spinlocks" conversion. Reported-by: Luis Claudio R. Goncalves <lclaudio@uudg.org> Cc: stable-rt@vger.kernel.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index a562d5a..c147f06 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1813,14 +1813,14 @@ static void dm_request_fn(struct request_queue *q)
if (map_request(ti, clone, md))
goto requeued;
- BUG_ON(!irqs_disabled());
+ BUG_ON_NONRT(!irqs_disabled());
spin_lock(q->queue_lock);
}
goto out;
requeued:
- BUG_ON(!irqs_disabled());
+ BUG_ON_NONRT(!irqs_disabled());
spin_lock(q->queue_lock);
delay_and_out: