diff options
| author | Jakub Kicinski <[email protected]> | 2025-04-08 19:59:55 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-04-10 00:01:52 +0000 |
| commit | ce7b14947484e6190372f2c3dbfb69aafbc4c0fc (patch) | |
| tree | 92629aa80020f1a3c58f50e897987cc12c6c070b /net/unix/af_unix.c | |
| parent | docs: netdev: break down the instance locking info per ops struct (diff) | |
| download | kernel-ce7b14947484e6190372f2c3dbfb69aafbc4c0fc.tar.gz kernel-ce7b14947484e6190372f2c3dbfb69aafbc4c0fc.zip | |
netdev: depend on netdev->lock for qstats in ops locked drivers
We mostly needed rtnl_lock in qstat to make sure the queue count
is stable while we work. For "ops locked" drivers the instance
lock protects the queue count, so we don't have to take rtnl_lock.
For currently ops-locked drivers: netdevsim and bnxt need
the protection from netdev going down while we dump, which
instance lock provides. gve doesn't care.
Reviewed-by: Joe Damato <[email protected]>
Acked-by: Stanislav Fomichev <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
