diff options
author | Eric Dumazet <[email protected]> | 2024-02-22 10:50:14 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-02-26 11:46:12 +0000 |
commit | e39951d965bf58b5aba7f61dc1140dcb8271af22 (patch) | |
tree | 77f0a45677f3c94b291ec43aefd8a1540407d736 /scripts/generate_rust_analyzer.py | |
parent | b5590270068c4324dac4a2b5a4a156e02e21339f (diff) |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions