提交 5fa4f8ba 编写于 作者: H Hannes Reinecke 提交者: Song Liu

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: NHannes Reinecke <hare@suse.de>
Signed-off-by: NSong Liu <songliubraving@fb.com>
上级 da644b2c
...@@ -819,6 +819,7 @@ static void flush_bio_list(struct r1conf *conf, struct bio *bio) ...@@ -819,6 +819,7 @@ static void flush_bio_list(struct r1conf *conf, struct bio *bio)
else else
generic_make_request(bio); generic_make_request(bio);
bio = next; bio = next;
cond_resched();
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册