Skip to content
Commit e56108d6 authored by NeilBrown's avatar NeilBrown
Browse files

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: default avatarNeilBrown <neilb@suse.de>
parent db07d85e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment