Re: [PATCH net-next v2] ppp: remove rwlock usage
Jakub Kicinski <[email protected]> Tue, 5 Aug 2025 16:03:33 -0700
| Newsgroups | org.kernel.vger.linux-ppp,org.kernel.vger.linux-kernel,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 5 Aug 2025 10:49:33 +0800 Qingfang Deng wrote: > In struct channel, the upl lock is implemented using rwlock_t, > protecting access to pch->ppp and pch->bridge. > > As previously discussed on the list, using rwlock in the network fast > path is not recommended. > This patch replaces the rwlock with a spinlock for writers, and uses RCU > for readers. > > - pch->ppp and pch->bridge are now declared as __rcu pointers. > - Readers use rcu_dereference_bh() under rcu_read_lock_bh(). > - Writers use spin_lock() to update, followed by synchronize_rcu() > where required. ## Form letter - net-next-closed We have already submitted our pull request with net-next material for v6.17, and therefore net-next is closed for new drivers, features, code refactoring and optimizations. We are currently accepting bug fixes only. Please repost when net-next reopens after Aug 11th. RFC patches sent for review only are obviously welcome at any time. See: https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle -- pw-bot: defer pv-bot: closed