aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r--drivers/md/dm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index e504bb40d60e..eaa3af0e0632 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -1637,13 +1637,15 @@ static void dm_request_fn(struct request_queue *q)
1637 if (map_request(ti, clone, md)) 1637 if (map_request(ti, clone, md))
1638 goto requeued; 1638 goto requeued;
1639 1639
1640 spin_lock_irq(q->queue_lock); 1640 BUG_ON(!irqs_disabled());
1641 spin_lock(q->queue_lock);
1641 } 1642 }
1642 1643
1643 goto out; 1644 goto out;
1644 1645
1645requeued: 1646requeued:
1646 spin_lock_irq(q->queue_lock); 1647 BUG_ON(!irqs_disabled());
1648 spin_lock(q->queue_lock);
1647 1649
1648plug_and_out: 1650plug_and_out:
1649 if (!elv_queue_empty(q)) 1651 if (!elv_queue_empty(q))