From 25d72c9bbcabbd2dc14a3b9fa4af210f341127dc Mon Sep 17 00:00:00 2001 From: Tvrtko Ursulin Date: Fri, 2 Oct 2026 13:46:55 +0100 Subject: [PATCH] drm/sched: Document entity->stopped is protected by entity->lock MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 0e118b936dc5 ("drm/sched: Lock drm_sched_entity_is_idle()") has removed the last unlocked entity->stopped access so lets officially document it in kerneldoc as locked with the entity lock. Signed-off-by: Tvrtko Ursulin Cc: Christian König Cc: Danilo Krummrich Cc: Matthew Brost Cc: Philipp Stanner Acked-by: Philipp Stanner Signed-off-by: Tvrtko Ursulin Link: https://lore.kernel.org/r/20261002124655.74716-1-tvrtko.ursulin@igalia.com [tursulin: fixed commit title typo] --- include/drm/gpu_scheduler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/gpu_scheduler.h b/include/drm/gpu_scheduler.h index 563d7fb88a6d..3b0978fa8cf0 100644 --- a/include/drm/gpu_scheduler.h +++ b/include/drm/gpu_scheduler.h @@ -101,7 +101,7 @@ struct drm_sched_entity { * * Lock protecting the run-queue (@rq) to which this entity belongs, * @priority, @last_scheduled and the list of schedulers (@sched_list, - * @num_sched_list) and @rr_ts. + * @num_sched_list), @rr_ts and @stopped. */ spinlock_t lock;