Re: [PATCH v12 32/43] sched/deadline: Start a period for a task requeued onto an rt_mutex

From: Mathieu Desnoyers

Date: Tue Dec 01 2026 - 11:20:57 EST


> Can a sleeping task switched to SCHED_DEADLINE after raw_spin_unlock(&task->pi_lock)
> still reach try_to_take_rt_mutex() with task->dl.deadline == 0?

Yes, in a window of a few instructions. The task can then take a lock
that has no owner, ahead of the top waiter of the lock. This patch
leaves only that window. On v7.4-rc2, nothing updates the deadline of a
requeued task before this trylock. The PI series, which will follow v13,
will not close the window. Its cover will list it as a known limit.

Thanks,

Mathieu