[lkml]   [2010]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[132/289] md/raid1: really fix recovery looping when single good device fails.
    2.6.36-stable review patch.  If anyone has any objections, please let us know.


    From: NeilBrown <>

    commit 8f9e0ee38f75d4740daa9e42c8af628d33d19a02 upstream.

    Commit 4044ba58dd15cb01797c4fd034f39ef4a75f7cc3 supposedly fixed a
    problem where if a raid1 with just one good device gets a read-error
    during recovery, the recovery would abort and immediately restart in
    an infinite loop.

    However it depended on raid1_remove_disk removing the spare device
    from the array. But that does not happen in this case. So add a test
    so that in the 'recovery_disabled' case, the device will be removed.

    This suitable for any kernel since 2.6.29 which is when
    recovery_disabled was introduced.

    Reported-by: Sebastian Färber <>
    Signed-off-by: NeilBrown <>
    Signed-off-by: Greg Kroah-Hartman <>

    drivers/md/raid1.c | 1 +
    1 file changed, 1 insertion(+)

    --- a/drivers/md/raid1.c
    +++ b/drivers/md/raid1.c
    @@ -1210,6 +1210,7 @@ static int raid1_remove_disk(mddev_t *md
    * is not possible.
    if (!test_bit(Faulty, &rdev->flags) &&
    + !mddev->recovery_disabled &&
    mddev->degraded < conf->raid_disks) {
    err = -EBUSY;
    goto abort;

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2010-12-08 02:37    [W:0.020 / U:36.204 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site