aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/drbd/drbd_bitmap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c
index 1e89a74ddb17..61f4fae9f67e 100644
--- a/drivers/block/drbd/drbd_bitmap.c
+++ b/drivers/block/drbd/drbd_bitmap.c
@@ -1400,8 +1400,10 @@ void _drbd_bm_set_bits(struct drbd_conf *mdev, const unsigned long s, const unsi
1400 /* first and full pages, unless first page == last page */ 1400 /* first and full pages, unless first page == last page */
1401 for (page_nr = first_page; page_nr < last_page; page_nr++) { 1401 for (page_nr = first_page; page_nr < last_page; page_nr++) {
1402 bm_set_full_words_within_one_page(mdev->bitmap, page_nr, first_word, last_word); 1402 bm_set_full_words_within_one_page(mdev->bitmap, page_nr, first_word, last_word);
1403 cond_resched_lock(&b->bm_lock); 1403 spin_unlock_irq(&b->bm_lock);
1404 cond_resched();
1404 first_word = 0; 1405 first_word = 0;
1406 spin_lock_irq(&b->bm_lock);
1405 } 1407 }
1406 1408
1407 /* last page (respectively only page, for first page == last page) */ 1409 /* last page (respectively only page, for first page == last page) */