Re: [PATCH v2 19/21] sched: Clear cpuset_locked where the policy check retries
From: Mathieu Desnoyers
Date: Thu Nov 05 2026 - 12:14:26 EST
On 2026-11-05 11:43, Andrea Parri wrote:
On Wed, Nov 04, 2026 at 04:12:05PM -0500, Mathieu Desnoyers wrote:
The retry of the policy check in __sched_setscheduler() drops
cpuset_mutex and leaves cpuset_locked saying it is held:
[...]
Clear the flag with the lock.
Fixes: 111cd11bbc54 ("sched/cpuset: Bring back cpuset_mutex")
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>
Hi Mathieu,
This is the same fix as [1], posted on Nov 2 and reviewed by Waiman,
Kayra and Juri. If [1] goes in first, this patch can be dropped when
rebasing.
[1] https://lore.kernel.org/20261102134606.242743-1-parri.andrea@xxxxxxxxx/
Thanks,
Andrea
Hi Andrea,
Thanks for pointing this out! I'll pick the preexisting patch into my
series instead for v3 if that's OK. Then maintainers can feel free to
pick it up from whatever route they prefer.
Mathieu
--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com