Thread (5 messages) flat view 5 messages, 3 authors, 18d ago

Re: [PATCH net v3] gtp: serialize PDP context updates

From: Pablo Neira Ayuso <pablo@netfilter.org>
Date: 2026-08-13 17:39:29
Also in: lkml

On Fri, Aug 14, 2026 at 12:31:59AM +0800, Ming Qing wrote:
quoted
在 2026/08/11 17:20 CST Pablo Neira Ayuso [off-list ref] 写道:
This can go away too, for gtp_genl_del_pdp(), the mutex replaces this
incorrect rcu read size lock.

Thanks.
quoted
+	mutex_unlock(&gtp_pdp_lock);
 	return err;
 }
 
-- 
2.53.0
gtp_find_pdp() calls gtp_find_dev(), which uses 
dev_get_by_index_rcu(). Should I keep a narrow RCU read-side section 
around gtp_find_pdp(), while using the mutex to protect the PDP context?
Indeed, I forgot about gtp_dev uses rcu. Thanks for explaining.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help