From: NeilBrown Date: Thu, 1 Mar 2007 04:11:48 +0000 (-0800) Subject: [PATCH] md: restart a (raid5) reshape that has been aborted due to a read/write error X-Git-Tag: v2.6.21-rc3~189 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4c4c7b8095298ff4ce20b40bf180ada070812d0;p=pandora-kernel.git [PATCH] md: restart a (raid5) reshape that has been aborted due to a read/write error An error always aborts any resync/recovery/reshape on the understanding that it will immediately be restarted if that still makes sense. However a reshape currently doesn't get restarted. With this patch it does. To avoid restarting when it is not possible to do work, we call into the personality to check that a reshape is ok, and strengthen raid5_check_reshape to fail if there are too many failed devices. We also break some code out into a separate function: remove_and_add_spares as the indent level for that code was getting crazy. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed