Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197509
b: refs/heads/master
c: 75a73a2
h: refs/heads/master
i:
  197507: d7a1951
v: v3
  • Loading branch information
NeilBrown committed May 18, 2010
1 parent 24ac840 commit 6b8c5d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: af3a2cd6b8a479345786e7fe5e199ad2f6240e56
refs/heads/master: 75a73a29e520a6ce982b0da6dd8b7560ae3faa90
10 changes: 8 additions & 2 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -2150,12 +2150,18 @@ static void md_update_sb(mddev_t * mddev, int force_change)
if (!mddev->in_sync || mddev->recovery_cp != MaxSector) { /* not clean */
/* .. if the array isn't clean, an 'even' event must also go
* to spares. */
if ((mddev->events&1)==0)
if ((mddev->events&1)==0) {
nospares = 0;
sync_req = 2; /* force a second update to get the
* even/odd in sync */
}
} else {
/* otherwise an 'odd' event must go to spares */
if ((mddev->events&1))
if ((mddev->events&1)) {
nospares = 0;
sync_req = 2; /* force a second update to get the
* even/odd in sync */
}
}
}

Expand Down

0 comments on commit 6b8c5d7

Please sign in to comment.