diff options
author | 2024-08-21 17:53:39 +0000 | |
---|---|---|
committer | 2024-08-22 17:14:03 -0700 | |
commit | 979b581e4c69257acab1af415ddad6b2d78a2fa5 (patch) | |
tree | d114fecd8ec244f1c3ab92b3660903141d7fc294 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | Merge tag 'net-6.11-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net (diff) | |
download | wireguard-linux-979b581e4c69257acab1af415ddad6b2d78a2fa5.tar.xz wireguard-linux-979b581e4c69257acab1af415ddad6b2d78a2fa5.zip |
pktgen: use cpus_read_lock() in pg_net_init()
I have seen the WARN_ON(smp_processor_id() != cpu) firing
in pktgen_thread_worker() during tests.
We must use cpus_read_lock()/cpus_read_unlock()
around the for_each_online_cpu(cpu) loop.
While we are at it use WARN_ON_ONCE() to avoid a possible syslog flood.
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20240821175339.1191779-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions