Skip to content

Commit bce7cd6

Browse files
mbrost05rodrigovivi
authored andcommitted
drm/xe: Disable garbage collector work item on SVM close
When an SVM is closed, the garbage collector work item must be stopped synchronously and any future queuing must be prevented. Replace flush_work() with disable_work_sync() to ensure both conditions are met. Fixes: 63f6e48 ("drm/xe: Add SVM garbage collector") Cc: stable@vger.kernel.org Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Link: https://patch.msgid.link/20260227015225.3081787-1-matthew.brost@intel.com (cherry picked from commit 2247feb) Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent e3fb579 commit bce7cd6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/xe/xe_svm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ int xe_svm_init(struct xe_vm *vm)
903903
void xe_svm_close(struct xe_vm *vm)
904904
{
905905
xe_assert(vm->xe, xe_vm_is_closed(vm));
906-
flush_work(&vm->svm.garbage_collector.work);
906+
disable_work_sync(&vm->svm.garbage_collector.work);
907907
xe_svm_put_pagemaps(vm);
908908
drm_pagemap_release_owner(&vm->svm.peer);
909909
}

0 commit comments

Comments
 (0)