On 10/03/25 10:35, Juri Lelli wrote: > Bandwidth checks and updates that work on root domains currently employ > a cookie mechanism for efficiency. This mechanism is very much tied to > when root domains are first created and initialized. > > Generalize the cookie mechanism so that it can be used also later at > runtime while updating root domains. Also, additionally guard it with > sched_domains_mutex, since domains need to be stable while updating them > (and it will be required for further dynamic changes). > > Reported-by: Jon Hunter <jonathanh@xxxxxxxxxx> > Fixes: 53916d5fd3c0 ("sched/deadline: Check bandwidth overflow earlier for hotplug") > Tested-by: Waiman Long <longman@xxxxxxxxxx> > Tested-by: Jon Hunter <jonathanh@xxxxxxxxxx> > Signed-off-by: Juri Lelli <juri.lelli@xxxxxxxxxx> Reviewed-by: Valentin Schneider <vschneid@xxxxxxxxxx>