mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
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: 63f6e480d1 ("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
This commit is contained in:
parent
6eb04caaa9
commit
2247feb9ba
|
|
@ -931,7 +931,7 @@ int xe_svm_init(struct xe_vm *vm)
|
|||
void xe_svm_close(struct xe_vm *vm)
|
||||
{
|
||||
xe_assert(vm->xe, xe_vm_is_closed(vm));
|
||||
flush_work(&vm->svm.garbage_collector.work);
|
||||
disable_work_sync(&vm->svm.garbage_collector.work);
|
||||
xe_svm_put_pagemaps(vm);
|
||||
drm_pagemap_release_owner(&vm->svm.peer);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user