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>
This commit is contained in:
Hannes Reinecke 2019-10-25 09:08:56 +02:00 committed by Song Liu
parent da644b2cc1
commit 5fa4f8bac9
1 changed files with 1 additions and 0 deletions

View File

@ -819,6 +819,7 @@ static void flush_bio_list(struct r1conf *conf, struct bio *bio)
else
generic_make_request(bio);
bio = next;
cond_resched();
}
}