[PATCH md 2 of 2] Correct "working_disk" counts for raid5 and raid6
From: NeilBrown <hidden>
Date: 2004-09-03 02:27:31
This error only affects two message (and sysadmin heart-rate). It does not risk data. Signed-off-by: Neil Brown <redacted> ### Diffstat output ./drivers/md/raid5.c | 2 +- ./drivers/md/raid6main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff ./drivers/md/raid5.c~current~ ./drivers/md/raid5.c
--- ./drivers/md/raid5.c~current~ 2004-09-03 11:34:26.000000000 +1000
+++ ./drivers/md/raid5.c 2004-09-03 11:37:56.000000000 +1000@@ -477,8 +477,8 @@ static void error(mddev_t *mddev, mdk_rd if (!rdev->faulty) { mddev->sb_dirty = 1; - conf->working_disks--; if (rdev->in_sync) { + conf->working_disks--; mddev->degraded++; conf->failed_disks++; rdev->in_sync = 0;
diff ./drivers/md/raid6main.c~current~ ./drivers/md/raid6main.c
--- ./drivers/md/raid6main.c~current~ 2004-09-03 11:34:26.000000000 +1000
+++ ./drivers/md/raid6main.c 2004-09-03 11:37:56.000000000 +1000@@ -498,8 +498,8 @@ static void error(mddev_t *mddev, mdk_rd if (!rdev->faulty) { mddev->sb_dirty = 1; - conf->working_disks--; if (rdev->in_sync) { + conf->working_disks--; mddev->degraded++; conf->failed_disks++; rdev->in_sync = 0;