Revert "drm/xe/vm: drop vm->destroy_work"
authorMatthew Auld <matthew.auld@intel.com>
Tue, 23 Apr 2024 07:47:22 +0000 (08:47 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 25 Apr 2024 15:52:34 +0000 (16:52 +0100)
commit6e78e0719d0ed5ec230e8e28bd59e47acb3dbc04
tree18cf666bfe0981df118dbe31b317db7d5f7556a4
parent3cd1585e57908b6efcd967465ef7685f40b2a294
Revert "drm/xe/vm: drop vm->destroy_work"

This reverts commit 5b259c0d1d3caa6efc66c2b856840e68993f814e.

Cleanup here is good, however we need to able to flush a worker during
vm destruction which might involve sleeping, so bring back the worker.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240423074721.119633-3-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vm_types.h