aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@cse.unsw.edu.au>2005-06-21 20:17:24 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 22:07:46 -0400
commit289e99e8ed8f36e386bf7de49947311c17ae1482 (patch)
tree058cca9106c45590db87f1568f28a043395a4f19 /drivers/md/raid1.c
parentab7a30c7051ee32d0d72415fe0a16d60eba38a0d (diff)
[PATCH] md: initialise sync_blocks in raid1 resync
Otherwise it could have a random value and might BUG. This fixes a BUG during resync problem in raid1 introduced by the bitmap-based-intent-loggin patches. 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 9d9acc3e51a7..c3b4772cfaea 100644
--- a/drivers/md/raid1.c
+++ b/drivers/md/raid1.c
@@ -1230,6 +1230,7 @@ static sector_t sync_request(mddev_t *mddev, sector_t sector_nr, int *skipped, i
1230 } 1230 }
1231 1231
1232 nr_sectors = 0; 1232 nr_sectors = 0;
1233 sync_blocks = 0;
1233 do { 1234 do {
1234 struct page *page; 1235 struct page *page;
1235 int len = PAGE_SIZE; 1236 int len = PAGE_SIZE;