aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/md.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2010-05-12 19:20:04 -0400
committerThomas Gleixner <tglx@linutronix.de>2010-05-12 19:20:04 -0400
commit1540c84b5ed657ed71dce06915bba461e6b09574 (patch)
treea449dc166800a1b0c429bb038bfc974e577eaf72 /drivers/md/md.c
parent1a3a403aa98b0ccabeb12abd7da90d33250ea36b (diff)
parent4640b4e7d9919e9629fe8456df94f71658431ef9 (diff)
Merge branch '2.6.33.4' into rt/2.6.33
Conflicts: Makefile Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r--drivers/md/md.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c
index a20a71e5efd3..2ecd1d5eb4fa 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -2108,12 +2108,18 @@ repeat:
2108 if (!mddev->in_sync || mddev->recovery_cp != MaxSector) { /* not clean */ 2108 if (!mddev->in_sync || mddev->recovery_cp != MaxSector) { /* not clean */
2109 /* .. if the array isn't clean, an 'even' event must also go 2109 /* .. if the array isn't clean, an 'even' event must also go
2110 * to spares. */ 2110 * to spares. */
2111 if ((mddev->events&1)==0) 2111 if ((mddev->events&1)==0) {
2112 nospares = 0; 2112 nospares = 0;
2113 sync_req = 2; /* force a second update to get the
2114 * even/odd in sync */
2115 }
2113 } else { 2116 } else {
2114 /* otherwise an 'odd' event must go to spares */ 2117 /* otherwise an 'odd' event must go to spares */
2115 if ((mddev->events&1)) 2118 if ((mddev->events&1)) {
2116 nospares = 0; 2119 nospares = 0;
2120 sync_req = 2; /* force a second update to get the
2121 * even/odd in sync */
2122 }
2117 } 2123 }
2118 } 2124 }
2119 2125