diff options
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 2011704b8ba0..cd2f7e77b625 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c | |||
@@ -512,9 +512,11 @@ static void end_io_acct(struct dm_io *io) | |||
512 | */ | 512 | */ |
513 | static void queue_io(struct mapped_device *md, struct bio *bio) | 513 | static void queue_io(struct mapped_device *md, struct bio *bio) |
514 | { | 514 | { |
515 | spin_lock_irq(&md->deferred_lock); | 515 | unsigned long flags; |
516 | |||
517 | spin_lock_irqsave(&md->deferred_lock, flags); | ||
516 | bio_list_add(&md->deferred, bio); | 518 | bio_list_add(&md->deferred, bio); |
517 | spin_unlock_irq(&md->deferred_lock); | 519 | spin_unlock_irqrestore(&md->deferred_lock, flags); |
518 | queue_work(md->wq, &md->work); | 520 | queue_work(md->wq, &md->work); |
519 | } | 521 | } |
520 | 522 | ||