Re: [PATCH] cgroup/cpuset: Skip security check for hotplug induced v1 task migration
From: Tejun Heo
Date: Fri Mar 27 2026 - 16:37:08 EST
On Fri, Mar 27, 2026 at 04:15:46PM -0400, Waiman Long wrote:
> + /*
> + * Set to true if a kthread is moving tasks away from a v1 cpuset with
> + * no CPUs
> + */
> + kthread_move_task_from_empty_cs = !cpuset_v2() &&
> + cpumask_empty(oldcs->effective_cpus) &&
> + (current->flags & PF_KTHREAD);
PF_KTHREAD test seems odd. Can't you pass this in as a flag from hotplug
handler?
Thanks.
--
tejun