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

Pablo Neira Ayuso <[email protected]>
Newsgroups gmane.linux.network,gmane.linux.kernel
Message-ID <an4BS0kOJaS1BlXC@chamomile>
On Fri, Aug 14, 2026 at 12:31:59AM +0800, Ming Qing wrote:
> 
> > 在 2026/08/11 17:20 CST Pablo Neira Ayuso <[email protected]> 写道:
> > This can go away too, for gtp_genl_del_pdp(), the mutex replaces this
> > incorrect rcu read size lock.
> > 
> > Thanks.
> > 
> > > +	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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.