1 From 0aeaa6f6ab349b92850f8413a8204e8513721bec Mon Sep 17 00:00:00 2001
2 From: Thomas Gleixner <tglx@linutronix.de>
3 Date: Mon, 14 Nov 2011 23:06:09 +0100
4 Subject: [PATCH 213/366] dm: Make rt aware
6 Use the BUG_ON_NORT variant for the irq_disabled() checks. RT has
7 interrupts legitimately enabled here as we cant deadlock against the
8 irq thread due to the "sleeping spinlocks" conversion.
10 Reported-by: Luis Claudio R. Goncalves <lclaudio@uudg.org>
12 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
14 drivers/md/dm.c | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
17 diff --git a/drivers/md/dm.c b/drivers/md/dm.c
18 index 3384a3e..170a3c2 100644
21 @@ -2127,7 +2127,7 @@ static void dm_request_fn(struct request_queue *q)
22 /* Establish tio->ti before queuing work (map_tio_request) */
24 queue_kthread_work(&md->kworker, &tio->work);
25 - BUG_ON(!irqs_disabled());
26 + BUG_ON_NONRT(!irqs_disabled());