aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorVlad Buslov <[email protected]>2018-09-24 19:22:49 +0300
committerDavid S. Miller <[email protected]>2018-09-25 20:17:35 -0700
commit6f99528e9797794b91b43321fbbc93fe772b0803 (patch)
tree67accb6fd62e34b0720d0824d2cdc1076568890c /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parentc774973e91e1f08c58bb25c950a30252cfde650c (diff)
net: core: netlink: add helper refcount dec and lock function
Rtnl lock is encapsulated in netlink and cannot be accessed by other modules directly. This means that reference counted objects that rely on rtnl lock cannot use it with refcounter helper function that atomically releases decrements reference and obtains mutex. This patch implements simple wrapper function around refcount_dec_and_lock that obtains rtnl lock if reference counter value reached 0. Signed-off-by: Vlad Buslov <[email protected]> Acked-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions