]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67087c00f3f8179e41dffd0948f705274b7e4613
treec4d527b9e66c276c5409e50676a25ac507660f01
parentdd49e9d4f7d9fbc95184ac254f50443c346a24f7
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