Re: [PATCH net-next] ppp: remove rwlock usage
Qingfang Deng <[email protected]> Mon, 4 Aug 2025 17:29:32 +0800
| Newsgroups | gmane.linux.ppp,gmane.linux.network,gmane.linux.kernel |
|---|---|
| Message-ID | <CALW65jZToqXjwgO15vi8TWYnXyS_cY96r7V=k8gQwpSRP2TzEw@mail.gmail.com> |
Hi Eric, On Mon, Aug 4, 2025 at 3:36 PM Eric Dumazet <[email protected]> wrote: > For all your patch : > > Since the spinlock is now only used from the control path in process > context, what is the reason you use _bh() suffix > blocking BH while holding it ? > > Also, a mere rcu_read_lock() is enough for ppp_dev_name() and > ppp_unit_number() : No need to disable BH there. You're right. I will drop the _bh suffix in a later patch. > > > + synchronize_rcu(); > > + > > if (ppp) { > > You probably could move the synchronize_rcu() here, there is no need > to call it if ppp is NULL Got it. > > > /* remove it from the ppp unit's list */ > > ppp_lock(ppp);