aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMark Zhang <[email protected]>2021-06-02 13:27:08 +0300
committerJason Gunthorpe <[email protected]>2021-06-02 15:41:58 -0300
commit76039ac9095f5ee5ec7fb95ccb6a5460d5f8c3a2 (patch)
treedd9b0fca05125e53bb0c7eab30ce7eb344f89150 /tools/perf/scripts/python/export-to-postgresql.py
parent7345201c39633fc4c82dae7315da7154efaf2459 (diff)
IB/cm: Protect cm_dev, cm_ports and mad_agent with kref and lock
During cm_dev deregistration in cm_remove_one(), the cm_device and cm_ports will be freed, after that they should not be accessed. The mad_agent needs to be protected as well. This patch adds a cm_device kref to protect cm_dev and cm_ports, and a mad_agent_lock spinlock to protect mad_agent. Link: https://lore.kernel.org/r/501ba7a2ff203dccd0e6755d3f93329772adce52.1622629024.git.leonro@nvidia.com Signed-off-by: Mark Zhang <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions