From: NeilBrown Date: Tue, 16 Mar 2010 06:23:35 +0000 (+1100) Subject: md: don't use mddev->raid_disks in raid0 or raid10 while array is active. X-Git-Tag: v2.6.35-rc1~440^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84707f38e767ac470fd82af6c45a8cafe2bd1b9a;p=pandora-kernel.git 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 --- Reading git-diff-tree failed