Re: [PATCH] drm/sched: Extend locking in drm_sched_entity_select_rq()

From: Philipp Stanner

Date: Thu Nov 26 2026 - 11:14:18 EST


On Tue, 2026-11-17 at 10:37 +0100, Philipp Stanner wrote:
> drm_sched_entity_select_rq() evaluates entity->sched_list locklessly,
> which is elsewhere always lock-protected. Another lockless check regards
> spsc_queue_count(). spsc_queue is evaluated under lock protection at
> many places already and the plan is to replace it with fully locked
> infrastructure anyways.
>
> Move the spin_lock() in drm_sched_entity_select_rq() upwards.

Tvrtko, Christian, objections with merging that for now?

P.