Date:2010-04-28 03:51:17 (13 years 5 months ago)
Author:Gabriele A. Trombetti
Commit:87aa63000c484bfb9909989316f615240dfee018
Message:md/raid6: Fix raid-6 read-error correction in degraded state

Fix: Raid-6 was not trying to correct a read-error when in
singly-degraded state and was instead dropping one more device, going to
doubly-degraded state. This patch fixes this behaviour.

Tested-by: Janos Haar <janos.haar@netcenter.hu>
Signed-off-by: Gabriele A. Trombetti <g.trombetti.lkrnl1213@logicschema.com>
Reported-by: Janos Haar <janos.haar@netcenter.hu>
Signed-off-by: NeilBrown <neilb@suse.de>
Cc: stable@kernel.org
Files: drivers/md/raid5.c (1 diff)

Change Details

drivers/md/raid5.c
15271527
15281528        clear_bit(R5_UPTODATE, &sh->dev[i].flags);
15291529        atomic_inc(&rdev->read_errors);
1530        if (conf->mddev->degraded)
1530        if (conf->mddev->degraded >= conf->max_degraded)
15311531            printk_rl(KERN_WARNING
15321532                  "raid5:%s: read error not correctable "
15331533                  "(sector %llu on %s).\n",

Archive Download the corresponding diff file



interactive