]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/blob - rt-patches/0213-dm-Make-rt-aware.patch
rt_patches: required rebase due to printk change
[hercules2020/nv-tegra/linux-4.4.git] / rt-patches / 0213-dm-Make-rt-aware.patch
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
5
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.
9
10 Reported-by: Luis Claudio R. Goncalves <lclaudio@uudg.org>
11
12 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
13 ---
14  drivers/md/dm.c | 2 +-
15  1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/drivers/md/dm.c b/drivers/md/dm.c
18 index 3384a3e..170a3c2 100644
19 --- a/drivers/md/dm.c
20 +++ b/drivers/md/dm.c
21 @@ -2127,7 +2127,7 @@ static void dm_request_fn(struct request_queue *q)
22                 /* Establish tio->ti before queuing work (map_tio_request) */
23                 tio->ti = ti;
24                 queue_kthread_work(&md->kworker, &tio->work);
25 -               BUG_ON(!irqs_disabled());
26 +               BUG_ON_NONRT(!irqs_disabled());
27         }
28  
29         goto out;
30 -- 
31 1.9.1
32