]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Clean up VM / exec queue file lock usage.
authorMatthew Brost <matthew.brost@intel.com>
Sat, 21 Sep 2024 01:17:12 +0000 (18:17 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 24 Sep 2024 16:03:42 +0000 (09:03 -0700)
commitfe4f5d4b661666a45b48fe7f95443f8fefc09c8c
tree31e40d590d3f9fcce8d8f0b9ab4930b04e9bc382
parent876253165f3eaaacacb8c8bed16a9df4b6081479
drm/xe: Clean up VM / exec queue file lock usage.

Both the VM / exec queue file lock protect the lookup and reference to
the object, nothing more. These locks are not intended anything else
underneath them. XA have their own locking too, so no need to take the
VM / exec queue file lock aside from when doing a lookup and reference
get.

Add some kernel doc to make this clear and cleanup a few typos too.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240921011712.2681510-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_device_types.h
drivers/gpu/drm/xe/xe_drm_client.c
drivers/gpu/drm/xe/xe_exec_queue.c
drivers/gpu/drm/xe/xe_vm.c