diff mbox series

md/raid1: avoid soft lockup under high load

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

Commit Message

Hannes Reinecke Oct. 25, 2019, 7:08 a.m. UTC
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(+)

Comments

Song Liu Oct. 30, 2019, 11:20 p.m. UTC | #1
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 mbox series

Patch

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();
 	}
 }