]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Merge branch 'net-remove-rtnl_lock-from-the-callers-of-queue-apis'
authorJakub Kicinski <kuba@kernel.org>
Wed, 12 Mar 2025 20:32:40 +0000 (13:32 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 12 Mar 2025 20:32:40 +0000 (13:32 -0700)
Stanislav Fomichev says:

====================
net: remove rtnl_lock from the callers of queue APIs

All drivers that use queue management APIs already depend on the netdev
lock. Ultimately, we want to have most of the paths that work with
specific netdev to be rtnl_lock-free (ethtool mostly in particular).
Queue API currently has a much smaller API surface, so start with
rtnl_lock from it:

- add mutex to each dmabuf binding (to replace rtnl_lock)
- move netdev lock management to the callers of netdev_rx_queue_restart
  and drop rtnl_lock
====================

Link: https://patch.msgid.link/20250311144026.4154277-1-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

Trivial merge