On 1/25/22 01:14, Vincent Guittot wrote:
Could we use : set_load_weight(p, !(p->__state & TASK_NEW)); instead of set_load_weight(p, true); in set_user_nice and __setscheduler_params.
Wouldn't that require READ_ONCE() and rmb() after the read? -- Thanks, Tadeusz