]> git.baikalelectronics.ru Git - kernel.git/commit
md: don't use mddev->raid_disks in raid0 or raid10 while array is active.
authorNeilBrown <neilb@suse.de>
Tue, 16 Mar 2010 06:23:35 +0000 (17:23 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 18 May 2010 05:27:47 +0000 (15:27 +1000)
commit9ab122d1576663461b51246b5f342f572acce1c1
treebc480c9aeedccd735e144576284523da1406cb98
parentad8aee99915556334dc68519c5453ca677b10b29
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: NeilBrown <neilb@suse.de>
drivers/md/raid0.c
drivers/md/raid10.c