aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/xe_exec_queue.c
diff options
context:
space:
mode:
authorNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>2024-05-29 15:16:39 -0700
committerMatthew Brost <matthew.brost@intel.com>2024-05-29 23:44:31 -0700
commit0568a4086a6c7386885eb2ac2dae3f7186eb503f (patch)
tree398abe80bf8dd44ac17fd3e97d3f4dea694a173c /drivers/gpu/drm/xe/xe_exec_queue.c
parentdrm/xe: Drop undesired prefix from the platform name (diff)
downloadlinux-0568a4086a6c7386885eb2ac2dae3f7186eb503f.tar.gz
linux-0568a4086a6c7386885eb2ac2dae3f7186eb503f.zip
drm/xe: Remove unwanted mutex locking
Do not hold xef->exec_queue.lock mutex while parsing the xarray xef->exec_queue.xa in xe_file_close() as it is not needed and will cause an unwanted dependency between this lock and the vm->lock. This lock protects the exec queue lookup and reference taking which doesn't apply to this code path. When FD is closing, IOCTLs presumably can't be modifying the xarray. v2: Update commit text (Matt Brost) v3: Add more code comment (Rodrigo Vivi) v4: Further expand code comment (Rodirgo Vivi) Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Jagmeet Randhawa <jagmeet.randhawa@intel.com> Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Signed-off-by: Matthew Brost <matthew.brost@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240529221639.23117-1-niranjana.vishwanathapura@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/xe_exec_queue.c')
0 files changed, 0 insertions, 0 deletions