drm/i915: Allow dead vm to unbind vma's without lock.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 28 Jan 2022 08:57:39 +0000 (09:57 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 28 Jan 2022 11:17:51 +0000 (12:17 +0100)
commita594525c82e0b8d677a7e5fd13c7c115d41e9722
treec4d527b9e66c276c5409e50676a25ac507660f01
parent7a05c5a0c883ed6353f82699dff8d789dae6b673
drm/i915: Allow dead vm to unbind vma's without lock.

i915_gem_vm_close may take the lock, and we currently have no better way
of handling this. At least for now, allow a path in which holding vm->mutex
is sufficient. This is the case, because the object destroy path will
forcefully take vm->mutex now.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220128085739.1464568-1-maarten.lankhorst@linux.intel.com
Reviewed-by: Thomas Hellstrom <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/i915/i915_vma.c