diff options
author | Eric Dumazet <edumazet@google.com> | 2019-04-23 09:24:46 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-24 11:46:54 -0700 |
commit | 4109a2c3b91e5f38e401fc4ea56848e65e429785 (patch) | |
tree | 5926a946b170e83fa231881157cfa66d6d6f8723 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | a65120bae4b7425a39c5783aa3d4fc29677eef0e (diff) | |
download | lwn-4109a2c3b91e5f38e401fc4ea56848e65e429785.tar.gz lwn-4109a2c3b91e5f38e401fc4ea56848e65e429785.zip |
tipc: tipc_udp_recv() cleanup vs rcu verbs
First thing tipc_udp_recv() does is to use rcu_dereference_sk_user_data(),
and this is really hinting we already own rcu_read_lock() from the caller
(UDP stack).
No need to add another rcu_read_lock()/rcu_read_unlock() pair.
Also use rcu_dereference() instead of rcu_dereference_rtnl()
in the data path.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Jon Maloy <jon.maloy@ericsson.com>
Cc: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions