aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorTomer Tayar <ttayar@habana.ai>2023-03-01 17:45:58 +0200
committerOded Gabbay <ogabbay@kernel.org>2023-03-15 13:29:15 +0200
commit2e8e9a895c4589f124a37fc84d123b5114406e94 (patch)
tree89af56f451be54058dc9e332106c26239f43fe98 /tools/perf/scripts/python/export-to-sqlite.py
parent801507d3b31489d8a834eab443987a562e2e1e41 (diff)
accel/habanalabs: postpone mem_mgr IDR destruction to hpriv_release()
The memory manager IDR is currently destroyed when user releases the file descriptor. However, at this point the user context might be still held, and memory buffers might be still in use. Later on, calls to release those buffers will fail due to not finding their handles in the IDR, leading to a memory leak. To avoid this leak, split the IDR destruction from the memory manager fini, and postpone it to hpriv_release() when there is no user context and no buffers are used. Signed-off-by: Tomer Tayar <ttayar@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions