diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2010-05-10 11:59:37 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <tglx@linutronix.de> | 2010-05-10 14:20:42 +0200 | 
| commit | dbb6be6d5e974c42bbecd183effaa0df69e1dd8b (patch) | |
| tree | 5735cb47e70853d057a9881dd0ce44b83e88fa63 /drivers/md/md.c | |
| parent | 6a867a395558a7f882d041783e4cdea6744ca2bf (diff) | |
| parent | b57f95a38233a2e73b679bea4a5453a1cc2a1cc9 (diff) | |
| download | olio-linux-3.10-dbb6be6d5e974c42bbecd183effaa0df69e1dd8b.tar.xz olio-linux-3.10-dbb6be6d5e974c42bbecd183effaa0df69e1dd8b.zip  | |
Merge branch 'linus' into timers/core
Reason: Further posix_cpu_timer patches depend on mainline changes
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/md/md.c')
| -rw-r--r-- | drivers/md/md.c | 11 | 
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index fdc1890b6ac..cefd63daff3 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -49,6 +49,7 @@  #include <linux/delay.h>  #include <linux/raid/md_p.h>  #include <linux/raid/md_u.h> +#include <linux/slab.h>  #include "md.h"  #include "bitmap.h" @@ -2108,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 */ +			}  		}  	}  |