aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorFelix Kuehling <[email protected]>2022-08-08 17:00:38 -0400
committerAlex Deucher <[email protected]>2022-08-16 18:03:23 -0400
commitc02895577b834a6148f6d9d0006a6f196511cc79 (patch)
tree333b61e66796bbc9165685f9cfad65d4667efeec /tools/testing/selftests/bpf/prog_tests/autoload.c
parentea8793f214ce1e4db205390c0241955f7ff6f383 (diff)
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 <[email protected]> Reviewed-by: Philip Yang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions