aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-11-14 23:06:09 +0100
committerAnders Roxell <anders.roxell@linaro.org>2015-05-08 22:42:29 +0200
commit2e62ec13e5955f44af4e3ca20ea65530987ad3e8 (patch)
tree9ed10e450cba959d7c2d1d984a76fb1d403fb6aa /drivers
parentca7092e7d7ce57819a0807bbf8e1fe5d435f06d2 (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> Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Diffstat (limited to 'drivers')
-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 cec85c5bae9e..1d0ba17c135a 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1898,14 +1898,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: