commit | e56108d65f8705170d238858616728359542aebb | [log] [tgz] |
---|---|---|
author | NeilBrown <neilb@suse.de> | Thu Oct 11 14:24:13 2012 +1100 |
committer | NeilBrown <neilb@suse.de> | Thu Oct 11 14:24:13 2012 +1100 |
tree | ebb300a8d901cdad3c160575a72e813dc5709728 | |
parent | db07d85ef6395d4768c6cdceeb2ea4878bd2a3f4 [diff] |
md/raid5: be careful not to resize_stripes too big. When a RAID5 is reshaping, conf->raid_disks is increased before mddev->delta_disks becomes zero. This can result in check_reshape calling resize_stripes with a number that is too large. This particularly happens when md_check_recovery calls ->check_reshape(). If we use ->previous_raid_disks, we don't risk this. Signed-off-by: NeilBrown <neilb@suse.de>