Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156692
b: refs/heads/master
c: 51d5668
h: refs/heads/master
v: v3
  • Loading branch information
NeilBrown committed Aug 12, 2009
1 parent 55f6729 commit a74583f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: c8c00a6915a2e3d10416e8bdd3138429beb96210
refs/heads/master: 51d5668cb2e3fd1827a55184e48606fff054c5be
13 changes: 5 additions & 8 deletions trunk/drivers/md/md.c
Original file line number Diff line number Diff line change
Expand Up @@ -1975,17 +1975,14 @@ static void md_update_sb(mddev_t * mddev, int force_change)
/* otherwise we have to go forward and ... */
mddev->events ++;
if (!mddev->in_sync || mddev->recovery_cp != MaxSector) { /* not clean */
/* .. if the array isn't clean, insist on an odd 'events' */
if ((mddev->events&1)==0) {
mddev->events++;
/* .. if the array isn't clean, an 'even' event must also go
* to spares. */
if ((mddev->events&1)==0)
nospares = 0;
}
} else {
/* otherwise insist on an even 'events' (for clean states) */
if ((mddev->events&1)) {
mddev->events++;
/* otherwise an 'odd' event must go to spares */
if ((mddev->events&1))
nospares = 0;
}
}
}

Expand Down

0 comments on commit a74583f

Please sign in to comment.