summaryrefslogtreecommitdiffstats
path: root/drivers/md/raid1.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2019-10-25 09:08:56 +0200
committerSong Liu <songliubraving@fb.com>2019-11-11 16:32:22 -0800
commit5fa4f8bac9516b988d2ccd3f05f4267f8da24269 (patch)
tree3418d060df452d8539fb72877eec594a73f1be9e /drivers/md/raid1.c
parentda644b2cc1a4664ff7f75d3ae50e3fcf638580d9 (diff)
downloadlinux-5fa4f8bac9516b988d2ccd3f05f4267f8da24269.tar.bz2
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/raid1.c')
-rw-r--r--drivers/md/raid1.c1
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();
}
}