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:54 +0300
committerDavid S. Miller <[email protected]>2018-09-25 20:17:36 -0700
commitcfebd7e242d7193a9901222b3e667788810d98c1 (patch)
treef7b045d12317526af5a5258266af33b5616387ab /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parente368fdb61d8e7c67ac70791b23345b26d7bbc661 (diff)
net: sched: change tcf block reference counter type to refcount_t
As a preparation for removing rtnl lock dependency from rules update path, change tcf block reference counter type to refcount_t to allow modification by concurrent users. In block put function perform decrement and check reference counter once to accommodate concurrent modification by unlocked users. After this change tcf_chain_put at the end of block put function is called with block->refcnt==0 and will deallocate block after the last chain is released, so there is no need to manually deallocate block in this case. However, if block reference counter reached 0 and there are no chains to release, block must still be deallocated manually. 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