Thread (10 messages) flat view 10 messages, 4 authors, 2026-01-07

Re: [PATCH] blk-mq: avoid stall during boot due to synchronize_rcu_expedited

From: Bart Van Assche <bvanassche@acm.org>
Date: 2026-01-07 16:49:29
Also in: rcu

On 1/6/26 8:56 AM, Mikulas Patocka wrote:
quoted hunk ↗ jump to hunk
--- linux-2.6.orig/block/blk-mq.c	2026-01-06 16:45:11.000000000 +0100
+++ linux-2.6/block/blk-mq.c	2026-01-06 16:48:00.000000000 +0100
@@ -4553,8 +4553,7 @@ static void __blk_mq_realloc_hw_ctxs(str
  		 * Make sure reading the old queue_hw_ctx from other
  		 * context concurrently won't trigger uaf.
  		 */
-		synchronize_rcu_expedited();
-		kfree(hctxs);
+		kfree_rcu_mightsleep(hctxs);
  		hctxs = new_hctxs;
  	}
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help