Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298551
b: refs/heads/master
c: c6d2e08
h: refs/heads/master
i:
  298549: 892dda9
  298547: acb8aad
  298543: a474db0
v: v3
  • Loading branch information
majianpeng authored and NeilBrown committed Apr 3, 2012
1 parent 36a73de commit 58d108b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: a42f9d83b5c05dc6e678a1f0cd9767502c2c58de
refs/heads/master: c6d2e084c7411f61f2b446d94989e5aaf9879b0f
4 changes: 3 additions & 1 deletion trunk/drivers/md/raid5.c
Original file line number Diff line number Diff line change
Expand Up @@ -3279,12 +3279,14 @@ static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s)
/* If there is a failed device being replaced,
* we must be recovering.
* else if we are after recovery_cp, we must be syncing
* else if MD_RECOVERY_REQUESTED is set, we also are syncing.
* else we can only be replacing
* sync and recovery both need to read all devices, and so
* use the same flag.
*/
if (do_recovery ||
sh->sector >= conf->mddev->recovery_cp)
sh->sector >= conf->mddev->recovery_cp ||
test_bit(MD_RECOVERY_REQUESTED, &(conf->mddev->recovery)))
s->syncing = 1;
else
s->replacing = 1;
Expand Down

0 comments on commit 58d108b

Please sign in to comment.