diff options
author | Hannes Reinecke | 2019-10-25 09:08:56 +0200 |
---|---|---|
committer | Song Liu | 2019-11-11 16:32:22 -0800 |
commit | 5fa4f8bac9516b988d2ccd3f05f4267f8da24269 (patch) | |
tree | 3418d060df452d8539fb72877eec594a73f1be9e /drivers/md | |
parent | da644b2cc1a4664ff7f75d3ae50e3fcf638580d9 (diff) |
md/raid1: avoid soft lockup under high load
As all I/O is being pushed through a kernel thread the softlockup
watchdog might be triggered under high load.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Song Liu <songliubraving@fb.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/raid1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index bb29aeefcbd0..a409ab6f30bc 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -819,6 +819,7 @@ static void flush_bio_list(struct r1conf *conf, struct bio *bio) else generic_make_request(bio); bio = next; + cond_resched(); } } |