diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c index ee4a3424a8a316b2f1888507b5a469fae0fd6f14..76a189ceb5291a755c1c74d3279541269a7b2774 100644 --- a/drivers/md/bitmap.c +++ b/drivers/md/bitmap.c @@ -315,6 +315,8 @@ static int write_page(struct bitmap *bitmap, struct page *page, int wait) if (bitmap->file == NULL) return write_sb_page(bitmap->mddev, bitmap->offset, page, wait); + flush_dcache_page(page); /* make sure visible to anyone reading the file */ + if (wait) lock_page(page); else {