summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorNeilBrown2005-07-27 20:43:28 +0200
committerLinus Torvalds2005-07-28 01:25:48 +0200
commit4b5c7ae83704320e2afb0912f4c42eadabc7535b (patch)
tree2db30198606683da3b683cabac531d902a249b27 /drivers/md/raid1.c
parent[PATCH] mips: fbdev Kcofnig fix (diff)
downloadkernel-qcow2-linux-4b5c7ae83704320e2afb0912f4c42eadabc7535b.tar.gz
kernel-qcow2-linux-4b5c7ae83704320e2afb0912f4c42eadabc7535b.tar.xz
kernel-qcow2-linux-4b5c7ae83704320e2afb0912f4c42eadabc7535b.zip
[PATCH] md: when resizing an array, we need to update resync_max_sectors as well as size
Without this, and attempt to 'grow' an array will claim to have synced the extra part without actually having done anything. Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r--drivers/md/raid1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
index 5f253ee536bb..d3a64a04a6d8 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1468,6 +1468,7 @@ static int raid1_resize(mddev_t *mddev, sector_t sectors)
set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
}
mddev->size = mddev->array_size;
+ mddev->resync_max_sectors = sectors;
return 0;
}