aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-11-14 23:06:09 +0100
committerSebastian Andrzej Siewior <bigeasy@linutronix.de>2016-02-13 00:36:29 +0100
commit6d91e340629f62cb256743d4c970bfd0ff688e7b (patch)
tree603e6bdbe96d6a3f505d7795ff69ea6fc55d3c54
parent24de88497c4b0bdee3550f41c8481731f9424057 (diff)
downloadrt-linux-6d91e340629f62cb256743d4c970bfd0ff688e7b.tar.gz
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> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--drivers/md/dm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index 5df40480228b7..1add7dc3c9c71 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -2126,7 +2126,7 @@ static void dm_request_fn(struct request_queue *q)
/* Establish tio->ti before queuing work (map_tio_request) */
tio->ti = ti;
queue_kthread_work(&md->kworker, &tio->work);
- BUG_ON(!irqs_disabled());
+ BUG_ON_NONRT(!irqs_disabled());
}
goto out;