diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-11-14 23:06:09 +0100 |
---|---|---|
committer | Anders Roxell <anders.roxell@linaro.org> | 2015-08-17 08:59:45 +0200 |
commit | ec0d85a4a684f11e20699f116d97d41637d6b66e (patch) | |
tree | 3b7654c1e2424a21e930a39f3e1b048104a638d4 | |
parent | 93ffe1c4139ff2c9fe5bbab1e4a4164ea8b0213e (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>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | drivers/md/dm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index e8d84566f311..08e385540b33 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -2139,7 +2139,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; |