diff options
author | 2019-10-09 20:18:28 +0800 | |
---|---|---|
committer | 2019-10-09 21:13:59 -0700 | |
commit | c17e26ddc79596230834345be80fcad6c619e9ec (patch) | |
tree | a79fe3552d3c8d031ccb9fa6dcfddf913d656faf /tools/perf/scripts/python | |
parent | net: stmmac: Remove break after a return (diff) | |
download | linux-dev-c17e26ddc79596230834345be80fcad6c619e9ec.tar.xz linux-dev-c17e26ddc79596230834345be80fcad6c619e9ec.zip |
team: call RCU read lock when walking the port_list
Before reading the team port list, we need to acquire the RCU read lock.
Also change list_for_each_entry() to list_for_each_entry_rcu().
v2:
repost the patch to net-next and remove fixes flag as this is a cosmetic
change.
Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions