diff options
| author | Breno Leitao <leitao@debian.org> | 2025-09-18 15:25:58 +0300 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-09-20 03:52:06 +0300 |
| commit | 614accf5455304ac0e708882609a34ec9aec463b (patch) | |
| tree | 183fa22b7c5c3114d1f64ae3a1b66d50ab3115dd /tools/perf/scripts/python/check-perf-trace.py | |
| parent | b34df17d588de926212527a2f2ce72bc4e330260 (diff) | |
| download | linux-614accf5455304ac0e708882609a34ec9aec463b.tar.xz | |
net: netpoll: use synchronize_net() instead of synchronize_rcu()
Replace synchronize_rcu() with synchronize_net() in __netpoll_free().
synchronize_net() is RTNL-aware and will use the more efficient
synchronize_rcu_expedited() when called under RTNL lock, avoiding
the potentially expensive synchronize_rcu() in RTNL critical sections.
Since __netpoll_free() is called with RTNL held (as indicated by
ASSERT_RTNL()), this change improves performance by reducing the
time spent in the RTNL critical section.
Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250918-netpoll_jv-v1-2-67d50eeb2c26@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
