Re: [PATCH net v3] gtp: serialize PDP context updates
From: Pablo Neira Ayuso
Date: Thu Aug 13 2026 - 13:44:28 EST
On Fri, Aug 14, 2026 at 12:31:59AM +0800, Ming Qing wrote:
>
> > 在 2026/08/11 17:20 CST Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> 写道:
> > This can go away too, for gtp_genl_del_pdp(), the mutex replaces this
> > incorrect rcu read size lock.
> >
> > Thanks.
> >
> > > + mutex_unlock(>p_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.