| From fa54df8253168a58f092bd48a538a55a07a5579c Mon Sep 17 00:00:00 2001 |
| From: Thomas Gleixner <tglx@linutronix.de> |
| Date: Mon, 14 Nov 2011 23:06:09 +0100 |
| Subject: [PATCH] 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> |
| [PG: relocate from dm.c to dm-rq.c for 4.7] |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c |
| index 7a9661868496..cd7c9125eecb 100644 |
| --- a/drivers/md/dm-rq.c |
| +++ b/drivers/md/dm-rq.c |
| @@ -795,7 +795,7 @@ static void dm_old_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()); |
| } |
| } |
| |
| -- |
| 2.5.0 |
| |