diff options
author | Eric Dumazet <[email protected]> | 2024-09-05 08:49:09 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2024-09-06 18:24:59 -0700 |
commit | 9a95eedc81deb86af1ac56f2c2bfe8306b27b82a (patch) | |
tree | c12e40e9ded07ea80218166dbc7820eeec345764 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | c6a1739778949d5fdfbb1443b41acf5c43879283 (diff) |
netpoll: remove netpoll_srcu
netpoll_srcu is currently used from netpoll_poll_disable() and
__netpoll_cleanup()
Both functions run under RTNL, using netpoll_srcu adds confusion
and no additional protection.
Moreover the synchronize_srcu() call in __netpoll_cleanup() is
performed before clearing np->dev->npinfo, which violates RCU rules.
After this patch, netpoll_poll_disable() and netpoll_poll_enable()
simply use rtnl_dereference().
This saves a big chunk of memory (more than 192KB on platforms
with 512 cpus)
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: Breno Leitao <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions