NeilBrown f001a70cdc md/raid5: use conf->raid_disks in preference to mddev->raid_disk
mddev->raid_disks can be changed and any time by a request from
user-space.  It is a suggestion as to what number of raid_disks is
desired.

conf->raid_disks can only be changed by the raid5 module with suitable
locks in place.  It is a statement as to the current number of
raid_disks.

There are two places where the latter should be used, but the former
is used.  This can lead to a crash when reshaping an array.

This patch changes to mddev-> to conf->

Signed-off-by: NeilBrown <neilb@suse.de>
2009-06-09 14:30:31 +10:00
..
2009-06-05 17:10:54 -04:00
2009-06-05 08:05:23 -07:00
2009-05-07 17:28:59 +02:00
2009-04-14 19:46:19 -07:00
2009-05-29 08:42:38 -07:00
2009-04-05 00:32:22 +02:00