Re: drm/sched: run queues freed before the TDR that drm_sched_fini() waits for

From: Philipp Stanner

Date: Thu Sep 10 2026 - 03:11:29 EST


On Thu, 2026-09-10 at 08:52 +0200, Philipp Stanner wrote:
>
>
> long drm_sched_entity_flush(struct drm_sched_entity *entity, long timeout) { struct drm_gpu_scheduler *sched; struct task_struct *last_user; long ret = timeout; if (!entity->rq) return 0; sched = entity->rq->sched;
>
>  /** * @rq: * * Runqueue on which this entity is currently scheduled. * * FIXME: Locking is very unclear for this. Writers are protected by * @lock, but readers are generally lockless and seem to just race with * not even a READ_ONCE. */ struct drm_sched_rq *rq;
>

Sorry for the formatting horror. No idea why that happens, layouts
correctly for me before sending.

I've had enough of this now and will setup Mutt or Aerc.


P.