]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/sa: Add lockdep annotations for SA manager swap_guard
authorSatyanarayana K V P <satyanarayana.k.v.p@intel.com>
Fri, 20 Feb 2026 05:55:23 +0000 (05:55 +0000)
committerMatthew Brost <matthew.brost@intel.com>
Fri, 20 Feb 2026 18:54:05 +0000 (10:54 -0800)
commitdfeef98e55d0e5f622886d0a9980c235ff08fd97
treee76fd321fd8a1d0a80738ed1a93462afbcebb874
parentbcd768d787e7bb4e06d77709fa17d5bafec8612e
drm/xe/sa: Add lockdep annotations for SA manager swap_guard

Annotate the SA manager init path to model taking swap_guard while under
reclaim context. This helps lockdep catch potential circular dependencies
between fs_reclaim and swap_guard in debug builds. Without this annotation,
lockdep is unaware of this chain until the shrinker runs.

Signed-off-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Suggested-by: Matthew Brost <matthew.brost@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260220055519.2485681-8-satyanarayana.k.v.p@intel.com
drivers/gpu/drm/xe/xe_sa.c