diff options
-rw-r--r-- | drivers/block/drbd/drbd_main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index 843b90966920..975dc5a66549 100644 --- a/drivers/block/drbd/drbd_main.c +++ b/drivers/block/drbd/drbd_main.c | |||
@@ -3849,11 +3849,13 @@ void drbd_queue_bitmap_io(struct drbd_conf *mdev, | |||
3849 | mdev->bm_io_work.done = done; | 3849 | mdev->bm_io_work.done = done; |
3850 | mdev->bm_io_work.why = why; | 3850 | mdev->bm_io_work.why = why; |
3851 | 3851 | ||
3852 | spin_lock_irq(&mdev->req_lock); | ||
3852 | set_bit(BITMAP_IO, &mdev->flags); | 3853 | set_bit(BITMAP_IO, &mdev->flags); |
3853 | if (atomic_read(&mdev->ap_bio_cnt) == 0) { | 3854 | if (atomic_read(&mdev->ap_bio_cnt) == 0) { |
3854 | if (!test_and_set_bit(BITMAP_IO_QUEUED, &mdev->flags)) | 3855 | if (!test_and_set_bit(BITMAP_IO_QUEUED, &mdev->flags)) |
3855 | drbd_queue_work(&mdev->data.work, &mdev->bm_io_work.w); | 3856 | drbd_queue_work(&mdev->data.work, &mdev->bm_io_work.w); |
3856 | } | 3857 | } |
3858 | spin_unlock_irq(&mdev->req_lock); | ||
3857 | } | 3859 | } |
3858 | 3860 | ||
3859 | /** | 3861 | /** |