diff options
author | Felix Kuehling <Felix.Kuehling@amd.com> | 2022-08-09 00:00:38 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-08-17 01:03:23 +0300 |
commit | c02895577b834a6148f6d9d0006a6f196511cc79 (patch) | |
tree | 333b61e66796bbc9165685f9cfad65d4667efeec /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ea8793f214ce1e4db205390c0241955f7ff6f383 (diff) | |
download | linux-c02895577b834a6148f6d9d0006a6f196511cc79.tar.xz |
drm/amdkfd: Fix mm reference in SVM eviction worker
Use the mm reference from the fence. This allows removing the
svm_bo->svms pointer, which was problematic because we cannot assume
that the struct kfd_process containing the svms is still allocated
without holding a refcount on the process.
Use mmget_not_zero to ensure the mm is still valid, and drop the svm_bo
reference if it isn't.
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions