diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-07 21:11:40 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-07 21:11:40 (GMT) |
commit | f1c448e0a9e99c76f4ece368714fb35a40a8daba (patch) | |
tree | d38c08fc14a2896d8763246b4fe6259360649a50 /drivers/md/md.c | |
parent | 2c32b1dab508ccaa4aea1a9d6047b65fc708e929 (diff) | |
parent | 1176568de7e066c0be9e46c37503b9fd4730edcf (diff) | |
download | linux-fsl-qoriq-f1c448e0a9e99c76f4ece368714fb35a40a8daba.tar.xz |
Merge branch 'for-linus' of git://neil.brown.name/md
* 'for-linus' of git://neil.brown.name/md:
md: restore ability of spare drives to spin down.
md/raid6: Fix raid-6 read-error correction in degraded state
Diffstat (limited to 'drivers/md/md.c')
-rw-r--r-- | drivers/md/md.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 9712b2e..cefd63d 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -2109,12 +2109,18 @@ repeat: 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 */ + } } } |