drm/xe/multi_queue: Protect priority against concurrent access
authorNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Mon, 26 Jan 2026 17:42:42 +0000 (09:42 -0800)
committerNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Thu, 29 Jan 2026 18:03:53 +0000 (10:03 -0800)
commite694179a2c02700087185bc300ba81dd17b7ad40
tree3f2a5eb21b82ee43a47287e983896cdd99aaa799
parent7755ed58a49f4c7f603e2b7b9fd5073a70d96406
drm/xe/multi_queue: Protect priority against concurrent access

Use a spinlock to protect multi-queue priority being concurrently
updated by multiple set_priority ioctls and to protect against
concurrent read and write to this field.

v2: Update documentation, remove WRITE/READ_LOCK() (Thomas)
    Use scoped_guard, reduced lock scope (Matt Brost)
v3: Fix author (checkpatch)

Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patch.msgid.link/20260126174241.3470390-2-niranjana.vishwanathapura@intel.com
drivers/gpu/drm/xe/xe_exec_queue.c
drivers/gpu/drm/xe/xe_exec_queue_types.h
drivers/gpu/drm/xe/xe_guc_submit.c