diff options
author | NeilBrown <neilb@suse.de> | 2009-10-16 06:55:32 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-10-16 06:55:32 +0200 |
commit | 1d9d52416c0445019ccc1f0fddb9a227456eb61b (patch) | |
tree | 1dc189d68babe4827e2a16d98fae6aeaa40792d7 /drivers/md/raid10.c | |
parent | Revert "md: do not progress the resync process if the stripe was blocked" (diff) | |
download | linux-1d9d52416c0445019ccc1f0fddb9a227456eb61b.tar.xz linux-1d9d52416c0445019ccc1f0fddb9a227456eb61b.zip |
md/raid1/raid10: add a cond_resched
During 'check' of a raid1 or raid10 it is possible for the management
thread to spend a lot of time running 'memcmp' on blocks from
different devices, so make sure the thread has a chance to schedule.
raid5d already has a cond_resched (in process_stripe).
Reported-By: Lee Howard <faxguy@howardsilvan.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r-- | drivers/md/raid10.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c index 51c4c5c4d87a..69fc76caa469 100644 --- a/drivers/md/raid10.c +++ b/drivers/md/raid10.c @@ -1632,6 +1632,7 @@ static void raid10d(mddev_t *mddev) generic_make_request(bio); } } + cond_resched(); } if (unplug) unplug_slaves(mddev); |