]> git.baikalelectronics.ru Git - kernel.git/commit
md: don't abort checking spares as soon as one cannot be added.
authorNeilBrown <neilb@suse.de>
Mon, 31 Jan 2011 00:57:43 +0000 (11:57 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 31 Jan 2011 00:57:43 +0000 (11:57 +1100)
commit61856309d7b470bf6969584364a55aab234e5c93
tree18a4c5edf23ec5aaf8872d9639970a99c7f16d8e
parentdb4a426c0b0282e24d28ae86515acbec88d9d545
md: don't abort checking spares as soon as one cannot be added.

As spares can be added manually before a reshape starts, we need to
find them all to mark some of them as in_sync.

Previously we would abort looking for spares when we found an
unallocated spare what could not be added to the array (implying there
was no room for new spares).  However already-added spares could be
later in the list, so we need to keep searching.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c