Re: [PATCH v4] sched/fair: do not scan twice in detach_tasks()

From: Shijie Huang
Date: Tue Jul 22 2025 - 05:41:04 EST



On 2025/7/22 15:53, Vincent Guittot wrote:
more_balance:
rq_lock_irqsave(busiest, &rf);
update_rq_clock(busiest);

+ if (!env.loop_max)
+ env.loop_max = min(sysctl_sched_nr_migrate,
busiest->cfs.h_nr_runnable);
it should be h_nr_queued as mentioned by Huang and my patch has been
messed up by my web browser

okay, I can create a patch later, and send it out after it passes the Specjbb test.


Thanks

Huang Shijie