aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/bitmap.c')
-rw-r--r--drivers/md/bitmap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index 220273e81ed6..51315302a85e 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -301,7 +301,7 @@ static int write_sb_page(mddev_t *mddev, long offset, struct page *page, int wai
301 page); 301 page);
302 302
303 if (wait) 303 if (wait)
304 wait_event(mddev->sb_wait, atomic_read(&mddev->pending_writes)==0); 304 md_super_wait(mddev);
305 return 0; 305 return 0;
306} 306}
307 307
@@ -828,8 +828,7 @@ int bitmap_unplug(struct bitmap *bitmap)
828 wake_up_process(bitmap->writeback_daemon->tsk)); 828 wake_up_process(bitmap->writeback_daemon->tsk));
829 spin_unlock_irq(&bitmap->write_lock); 829 spin_unlock_irq(&bitmap->write_lock);
830 } else 830 } else
831 wait_event(bitmap->mddev->sb_wait, 831 md_super_wait(bitmap->mddev);
832 atomic_read(&bitmap->mddev->pending_writes)==0);
833 } 832 }
834 return 0; 833 return 0;
835} 834}