OSDN Git Service

drm/amdkfd: handle VMA remove race
authorPhilip Yang <Philip.Yang@amd.com>
Fri, 19 Nov 2021 21:16:39 +0000 (16:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Nov 2021 19:06:53 +0000 (14:06 -0500)
commit7ad153db5859e5e156307865d9df7f2a392c1686
tree454c1c831765525decf65dc9af1ea3fb84503dcc
parenta0c55ecee10055901c9c1b46d0d129cb6b51fa5d
drm/amdkfd: handle VMA remove race

VMA may be removed before unmap notifier callback, and deferred list
work remove range, return success for this special case as we are
handling stale retry fault.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c