aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorYing Xue <[email protected]>2017-03-28 12:28:27 +0200
committerDavid S. Miller <[email protected]>2017-03-28 18:03:32 -0700
commit139bb36f754adbf6d3c836db09d6459e25167b38 (patch)
tree67aaf23ea8b620ffeba8fd79273d480811b8cf5c /tools/perf/scripts/python/call-graph-from-postgresql.py
parent589a1a2e63163bdd59f983d6cd89cec5f9457823 (diff)
tipc: advance the time of deleting subscription from subscriber->subscrp_list
After a subscription object is created, it's inserted into its subscriber subscrp_list list under subscriber lock protection, similarly, before it's destroyed, it should be first removed from its subscriber->subscrp_list. Since the subscription list is accessed with subscriber lock, all the subscriptions are valid during the lock duration. Hence in tipc_subscrb_subscrp_delete(), we remove subscription get/put and the extra subscriber unlock/lock. After this change, the subscriptions refcount cleanup is very simple and does not access any lock. Acked-by: Jon Maloy <[email protected]> Signed-off-by: Ying Xue <[email protected]> Signed-off-by: Parthasarathy Bhuvaragan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions