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

md: don't use mddev->raid_disks in raid0 or raid10 while array is active.



In a subsequent patch we will make it possible to change
mddev->raid_disks while a RAID0 or RAID10 array is active.  This is
part of the process of reshaping such an array.

This means that we cannot use this value while processes requests
(it is OK to use it during initialisation as we are locked against
changes then).
Both RAID0 and RAID10 have the same value stored in the private data
structure, so use that value instead.

Signed-off-by: default avatarNeilBrown <neilb@suse.de>
parent c0cc75f8
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