[PATCH] md: make sure raid5/raid6 resync uses correct 'max_sectors'
authorNeilBrown <neilb@cse.unsw.edu.au>
Mon, 1 Aug 2005 05:34:50 +0000 (22:34 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 2 Aug 2005 02:14:01 +0000 (19:14 -0700)
commitb1581566183f310abbd2d384a9079d4039faca05
tree41c7ba3538663a6c79ad5ac9b002f4bd54d4a4f4
parent57ee67af35183c60e924ebb6d6b3e1d2d9c03366
[PATCH] md: make sure raid5/raid6 resync uses correct 'max_sectors'

The default resync_max_sector is set to "mddev->size << 1".  If the
raid-personality-module updates mddev->size, it must update
resync_max_sectors too.

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/raid5.c
drivers/md/raid6main.c