2020-06-23 13:42:59 +00:00
|
|
|
From 8a0b137903b17bfba32e5879cb82453cce87bce8 Mon Sep 17 00:00:00 2001
|
|
|
|
Message-Id: <8a0b137903b17bfba32e5879cb82453cce87bce8.1592846147.git.zanussi@kernel.org>
|
|
|
|
In-Reply-To: <07cd0dbc80b976663c80755496a03f288decfe5a.1592846146.git.zanussi@kernel.org>
|
|
|
|
References: <07cd0dbc80b976663c80755496a03f288decfe5a.1592846146.git.zanussi@kernel.org>
|
2018-08-27 14:32:32 +00:00
|
|
|
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
|
|
Date: Tue, 27 Mar 2018 16:24:15 +0200
|
2020-06-23 13:42:59 +00:00
|
|
|
Subject: [PATCH 034/330] dm rq: remove BUG_ON(!irqs_disabled) check
|
|
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.19/older/patches-4.19.127-rt55.tar.xz
|
2018-08-27 14:32:32 +00:00
|
|
|
|
|
|
|
In commit 052189a2ec95 ("dm: remove superfluous irq disablement in
|
|
|
|
dm_request_fn") the spin_lock_irq() was replaced with spin_lock() + a
|
|
|
|
check for disabled interrupts. Later the locking part was removed in
|
|
|
|
commit 2eb6e1e3aa87 ("dm: submit stacked requests in irq enabled
|
|
|
|
context") but the BUG_ON() check remained.
|
|
|
|
|
|
|
|
Since the original purpose for the "are-irqs-off" check is gone (the
|
|
|
|
->queue_lock has been removed) remove it.
|
|
|
|
|
|
|
|
Cc: Keith Busch <keith.busch@intel.com>
|
|
|
|
Cc: Mike Snitzer <snitzer@redhat.com>
|
|
|
|
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
|
|
|
|
---
|
2019-04-08 23:49:20 +00:00
|
|
|
drivers/md/dm-rq.c | 1 -
|
2018-08-27 14:32:32 +00:00
|
|
|
1 file changed, 1 deletion(-)
|
|
|
|
|
2019-04-08 23:49:20 +00:00
|
|
|
diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c
|
2019-11-25 00:04:39 +00:00
|
|
|
index 4d36373e1c0f..12ed08245130 100644
|
2018-08-27 14:32:32 +00:00
|
|
|
--- a/drivers/md/dm-rq.c
|
|
|
|
+++ b/drivers/md/dm-rq.c
|
2019-11-25 00:04:39 +00:00
|
|
|
@@ -692,7 +692,6 @@ static void dm_old_request_fn(struct request_queue *q)
|
2018-08-27 14:32:32 +00:00
|
|
|
/* Establish tio->ti before queuing work (map_tio_request) */
|
|
|
|
tio->ti = ti;
|
|
|
|
kthread_queue_work(&md->kworker, &tio->work);
|
|
|
|
- BUG_ON(!irqs_disabled());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-03 23:36:11 +00:00
|
|
|
--
|
2020-06-22 13:14:16 +00:00
|
|
|
2.17.1
|
2020-01-03 23:36:11 +00:00
|
|
|
|