aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-postgresql.py
diff options
context:
space:
mode:
authorCalvin Owens <[email protected]>2015-08-13 18:48:09 -0700
committerJames Bottomley <[email protected]>2015-09-06 10:55:18 -0700
commitd224fe0d609734888af63656ddaf3a8352f0a7b5 (patch)
tree87f0a4e6a88624e464d70def6f7475be9b441691 /tools/perf/scripts/python/call-graph-from-postgresql.py
parent710105fda7a7f350c9fb22e7f61f74c3dc0fe514 (diff)
mpt2sas: Refcount sas_device objects and fix unsafe list usage
These objects can be referenced concurrently throughout the driver, we need a way to make sure threads can't delete them out from under each other. This patch adds the refcount, and refactors the code to use it. Additionally, we cannot iterate over the sas_device_list without holding the lock, or we risk corrupting random memory if items are added or deleted as we iterate. This patch refactors _scsih_probe_sas() to use the sas_device_list in a safe way. Signed-off-by: Calvin Owens <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Nicholas Bellinger <[email protected]> Tested-by: Chaitra Basappa <[email protected]> Acked-by: Sreekanth Reddy <[email protected]> Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions