Skip to contentSkip to conversation

md/raid1: avoid soft lockup under high load

PATCH Applied Hannes Reinecke 2 participants 2 messages Oct 25, 2019 – Oct 30, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/md/raid1.c | 1 +
 1 file changed, 1 insertion(+)
drivers/md/raid1.c +1 -0
index d37a55f8e461..d7543805e9ff 100644
@@ -821,6 +821,7 @@ static void flush_bio_list(struct r1conf *conf, struct bio *bio)
 		else
 			generic_make_request(bio);
 		bio = next;
+		cond_resched();
 	}
 }
 
Signature · 1 line
2.16.4
Applied
#1 lore raw
Quoted 5 lines · Hannes Reinecke

As all I/O is being pushed through a kernel thread the softlockup watchdog might be triggered under high load.

Applied to md-next. Thanks!

Song