Re: [PATCH net] net: expect instance lock in netdev_queue_get_dma_dev()

[email protected]
Newsgroups org.kernel.vger.io-uring,org.kernel.vger.netdev,org.kernel.vger.stable
Message-ID <178640401364.250217.82789217556428963.git-patchwork-notify@kernel.org>
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

On Thu,  6 Aug 2026 15:56:26 -0700 you wrote:
> netdev_queue_get_dma_dev() uses "compat" locking assert which wants
> either the rtnl_lock or netdev instance lock. This is not right,
> the callers are taking the instance lock unconditionally. All entry
> points for queue config are purely instance locked.
> 
> In other words the callers use netdev_get_by_index_lock(), not
> netdev_get_by_index_lock_ops_compat(). All the state we will
> access is effectively instance lock protected (it's const for
> devices which are not ops-locked).
> 
> [...]

Here is the summary with links:
  - [net] net: expect instance lock in netdev_queue_get_dma_dev()
    https://git.kernel.org/netdev/net/c/92465f46f3c3

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
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.