Message ID | 20191025070856.76761-1-hare@suse.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | md/raid1: avoid soft lockup under high load | expand |
On Fri, Oct 25, 2019 at 12:25 PM Hannes Reinecke <hare@suse.de> wrote: > > 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> Applied to md-next. Thanks! Song
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index d37a55f8e461..d7543805e9ff 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -821,6 +821,7 @@ static void flush_bio_list(struct r1conf *conf, struct bio *bio) else generic_make_request(bio); bio = next; + cond_resched(); } }
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> --- drivers/md/raid1.c | 1 + 1 file changed, 1 insertion(+)