aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorJiri Pirko <[email protected]>2023-10-13 14:10:24 +0200
committerDavid S. Miller <[email protected]>2023-10-18 09:23:01 +0100
commitc503bc7df602257e9d03851654a347649a33f3c3 (patch)
treebc45f05aa5587b0c10c8369949a3430d8267e3f5 /tools/perf/scripts/python/mem-phys-addr.py
parent2034d90ae41ae93e30d492ebcf1f06f97a9cfba6 (diff)
devlink: call peernet2id_alloc() with net pointer under RCU read lock
peernet2id_alloc() allows to be called lockless with peer net pointer obtained in RCU critical section and makes sure to return ns ID if net namespaces is not being removed concurrently. Benefit from read_pnet_rcu() helper addition, use it to obtain net pointer under RCU read lock and pass it to peernet2id_alloc() to get ns ID. Fixes: c137743bce02 ("devlink: introduce object and nested devlink relationship infra") Signed-off-by: Jiri Pirko <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions