From: NeilBrown Date: Thu, 11 Oct 2012 03:24:13 +0000 (+1100) Subject: md/raid5: be careful not to resize_stripes too big. X-Git-Tag: v3.7-rc1~10^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e56108d65f8705170d238858616728359542aebb;p=pandora-kernel.git 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 --- Reading git-diff-tree failed