ChangeSet 1.2065.3.57, 2005/03/12 08:36:11-08:00, [EMAIL PROTECTED]

        [PATCH] md: remove kludgy level check from md.c
        
        This test is overly specific, and misses raid10.
        Assume all levels >= 1 might need reconstruction instead.
        
        Signed-off-by: Neil Brown <[EMAIL PROTECTED]>
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 md.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)


diff -Nru a/drivers/md/md.c b/drivers/md/md.c
--- a/drivers/md/md.c   2005-03-12 21:36:56 -08:00
+++ b/drivers/md/md.c   2005-03-12 21:36:56 -08:00
@@ -1435,9 +1435,8 @@
 
 
 
-       if ((mddev->recovery_cp != MaxSector) &&
-           ((mddev->level == 1) ||
-            ((mddev->level >= 4) && (mddev->level <= 6))))
+       if (mddev->recovery_cp != MaxSector &&
+           mddev->level >= 1)
                printk(KERN_ERR "md: %s: raid array is not clean"
                       " -- starting background reconstruction\n",
                       mdname(mddev));
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to