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@xxxxxxxxxxxxxxx> ### Diffstat output ./drivers/md/raid1.c | 1 + 1 files changed, 1 insertion(+) diff ./drivers/md/raid1.c~current~ ./drivers/md/raid1.c --- ./drivers/md/raid1.c~current~ 2005-03-07 15:49:55.000000000 +1100 +++ ./drivers/md/raid1.c 2005-03-07 15:53:55.000000000 +1100 @@ -1235,6 +1235,7 @@ static sector_t sync_request(mddev_t *md } nr_sectors = 0; + sync_blocks = 0; do { struct page *page; int len = PAGE_SIZE; - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html