* [PATCH] md/raid1: avoid soft lockup under high load
@ 2019-10-25 7:08 Hannes Reinecke
2019-10-30 23:20 ` Song Liu
0 siblings, 1 reply; 2+ messages in thread
From: Hannes Reinecke @ 2019-10-25 7:08 UTC (permalink / raw)
To: Jens Axboe; +Cc: Coly Li, Neil Brown, linux-block, linux-raid, Hannes Reinecke
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(+)
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();
}
}
--
2.16.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] md/raid1: avoid soft lockup under high load
2019-10-25 7:08 [PATCH] md/raid1: avoid soft lockup under high load Hannes Reinecke
@ 2019-10-30 23:20 ` Song Liu
0 siblings, 0 replies; 2+ messages in thread
From: Song Liu @ 2019-10-30 23:20 UTC (permalink / raw)
To: Hannes Reinecke; +Cc: Jens Axboe, Coly Li, Neil Brown, linux-block, linux-raid
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-30 23:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-25 7:08 [PATCH] md/raid1: avoid soft lockup under high load Hannes Reinecke
2019-10-30 23:20 ` Song Liu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).