Skip to contentSkip to conversation

dm rq: remove BUG_ON(!irqs_disabled) check

PATCH New Sebastian Andrzej Siewior 1 participant 1 message Mar 27, 2018 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm rq: remove BUG_ON(!irqs_disabled) check

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) I am removing the BUG_ON() check.

---
 drivers/md/dm-rq.c | 1 -
 1 file changed, 1 deletion(-)
drivers/md/dm-rq.c +0 -1
index bf0b840645cc..1a524f992f72 100644
@@ -688,7 +688,6 @@ static void dm_old_request_fn(struct request_queue *q)
 		/* Establish tio->ti before queuing work (map_tio_request) */
 		tio->ti = ti;
 		kthread_queue_work(&md->kworker, &tio->work);
-		BUG_ON(!irqs_disabled());
 	}
 }
 
Signature · 1 line
2.16.3