diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-11-14 23:06:09 +0100 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-03-06 10:18:03 -0600 |
commit | ffb76a8bc22aafd756de4c85025e60ac1448f139 (patch) | |
tree | bc1810974b4a6aa9bc76d5d3b8b9439b616730e6 | |
parent | 03b020a3d54beb3643399b63a4bc7015dd5d20f1 (diff) |
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>
-rw-r--r-- | drivers/md/dm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 4720f68f817e..b1eff426c2fc 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1648,14 +1648,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: |