Message ID | 4BA20978.7090601@ct.jp.nec.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Mike Snitzer |
Headers | show |
Index: 2.6.34-rc1/drivers/md/dm.c =================================================================== --- 2.6.34-rc1.orig/drivers/md/dm.c +++ 2.6.34-rc1/drivers/md/dm.c @@ -1688,13 +1688,15 @@ static void dm_request_fn(struct request if (map_request(ti, clone, md)) goto requeued; - spin_lock_irq(q->queue_lock); + BUG_ON(!irqs_disabled()); + spin_lock(q->queue_lock); } goto out; requeued: - spin_lock_irq(q->queue_lock); + BUG_ON(!irqs_disabled()); + spin_lock(q->queue_lock); plug_and_out: if (!elv_queue_empty(q))