diff options
author | Eric Dumazet <edumazet@google.com> | 2024-02-22 10:50:14 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-02-26 11:46:12 +0000 |
commit | e39951d965bf58b5aba7f61dc1140dcb8271af22 (patch) | |
tree | 77f0a45677f3c94b291ec43aefd8a1540407d736 /include/net/rtnetlink.h | |
parent | b5590270068c4324dac4a2b5a4a156e02e21339f (diff) | |
download | lwn-e39951d965bf58b5aba7f61dc1140dcb8271af22.tar.gz lwn-e39951d965bf58b5aba7f61dc1140dcb8271af22.zip |
rtnetlink: change nlk->cb_mutex role
In commit af65bdfce98d ("[NETLINK]: Switch cb_lock spinlock
to mutex and allow to override it"), Patrick McHardy used
a common mutex to protect both nlk->cb and the dump() operations.
The override is used for rtnl dumps, registered with
rntl_register() and rntl_register_module().
We want to be able to opt-out some dump() operations
to not acquire RTNL, so we need to protect nlk->cb
with a per socket mutex.
This patch renames nlk->cb_def_mutex to nlk->nl_cb_mutex
The optional pointer to the mutex used to protect dump()
call is stored in nlk->dump_cb_mutex
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/rtnetlink.h')
0 files changed, 0 insertions, 0 deletions