[PATCH] md: initialise sync_blocks in raid1 resync
authorNeilBrown <neilb@cse.unsw.edu.au>
Wed, 22 Jun 2005 00:17:24 +0000 (17:17 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 02:07:46 +0000 (19:07 -0700)
commit289e99e8ed8f36e386bf7de49947311c17ae1482
tree058cca9106c45590db87f1568f28a043395a4f19
parentab7a30c7051ee32d0d72415fe0a16d60eba38a0d
[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>
drivers/md/raid1.c