Thread (3 messages) 3 messages, 2 authors, 2026-01-05

Re: [PATCH net] net: airoha: Fix schedule while atomic in airoha_ppe_deinit()

From: Jakub Kicinski <kuba@kernel.org>
Date: 2026-01-04 17:58:02
Also in: linux-arm-kernel, linux-mediatek

On Tue, 23 Dec 2025 22:56:44 +0100 Lorenzo Bianconi wrote:
Rely on rcu_replace_pointer in airoha_ppe_deinit routine in order to fix
schedule while atomic issue.
The information in the commit message is not sufficient.
What "schedule while atomic issue"?
-	npu = rcu_dereference(eth->npu);
+	mutex_lock(&flow_offload_mutex);
+
+	npu = rcu_replace_pointer(eth->npu, NULL,
+				  lockdep_is_held(&flow_offload_mutex));
 	if (npu) {
 		npu->ops.ppe_deinit(npu);
 		airoha_npu_put(npu);
-- 
pw-bot: cr
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help