diff options
author | NeilBrown <neilb@suse.de> | 2013-07-04 16:38:16 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-07-04 16:42:52 +1000 |
commit | fdcfbbb653b27964c4daa4d2bcb364259c257e7d (patch) | |
tree | 1ea7bffe6fbd61874922fb9da20c0a9157a9d71c /drivers/scsi/raid_class.c | |
parent | 78eaa0d4cbcdb345992fa3dd22b3bcbb473cc064 (diff) | |
download | blackbird-op-linux-fdcfbbb653b27964c4daa4d2bcb364259c257e7d.tar.gz blackbird-op-linux-fdcfbbb653b27964c4daa4d2bcb364259c257e7d.zip |
md/raid5: allow 5-device RAID6 to be reshaped to 4-device.
There is a bug in 'check_reshape' for raid5.c To checks
that the new minimum number of devices is large enough (which is
good), but it does so also after the reshape has started (bad).
This is bad because
- the calculation is now wrong as mddev->raid_disks has changed
already, and
- it is pointless because it is now too late to stop.
So only perform that test when reshape has not been committed to.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/scsi/raid_class.c')
0 files changed, 0 insertions, 0 deletions