drm/xe/vm: drop vm->destroy_work
authorMatthew Auld <matthew.auld@intel.com>
Fri, 12 Apr 2024 11:31:46 +0000 (12:31 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 17 Apr 2024 12:38:32 +0000 (13:38 +0100)
commit5b259c0d1d3caa6efc66c2b856840e68993f814e
treee6d2a845eb28d356d817448034e2db9004ddd628
parent83967c57320d0d01ae512f10e79213f81e4bf594
drm/xe/vm: drop vm->destroy_work

Now that we no longer grab the usm.lock mutex (which might sleep) it
looks like it should be safe to directly perform xe_vm_free when vm
refcount reaches zero, instead of punting that off to some 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/20240412113144.259426-5-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vm_types.h