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

Ming Qing <[email protected]>
Newsgroups gmane.linux.kernel,gmane.linux.network
Message-ID <[email protected]>
> 在 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?

Thanks,
Qing
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.