summaryrefslogtreecommitdiff
path: root/drivers/md/bitmap.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2017-09-05 06:33:41 -0700
committerTejun Heo <tj@kernel.org>2017-09-05 06:33:41 -0700
commit058fc47ee22c60c817c362ef6844d40d8ebb8140 (patch)
treeda0bf3dec31d4c30a5420930cd11a5c2cdc5e46b /drivers/md/bitmap.c
parentc5a94a618e7ac86b20f53d947f68d7cee6a4c6bc (diff)
parent1ad0f0a7aa1bf3bd42dcd108a96713d255eacd9f (diff)
Merge branch 'for-4.13-fixes' into for-4.14
Diffstat (limited to 'drivers/md/bitmap.c')
-rw-r--r--drivers/md/bitmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/bitmap.c b/drivers/md/bitmap.c
index f4eace5ea184..40f3cd7eab0f 100644
--- a/drivers/md/bitmap.c
+++ b/drivers/md/bitmap.c
@@ -156,7 +156,8 @@ static int read_sb_page(struct mddev *mddev, loff_t offset,
rdev_for_each(rdev, mddev) {
if (! test_bit(In_sync, &rdev->flags)
- || test_bit(Faulty, &rdev->flags))
+ || test_bit(Faulty, &rdev->flags)
+ || test_bit(Bitmap_sync, &rdev->flags))
continue;
target = offset + index * (PAGE_SIZE/512);