cgroup/cpuset: Skip task update if hotplug doesn't affect current cpuset
authorWaiman Long <longman@redhat.com>
Fri, 17 Mar 2023 15:15:06 +0000 (11:15 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 29 Mar 2023 18:41:28 +0000 (08:41 -1000)
commitdf59b72cd8fb8ca00301f47e65853efed195d23f
tree6ac2295dc3f69a2d39c873564a7bdc37a08a2647
parent5dcad50636a5d416135bafae86fc4979b911a7c6
cgroup/cpuset: Skip task update if hotplug doesn't affect current cpuset

If a hotplug event doesn't affect the current cpuset, there is no point
to call hotplug_update_tasks() or hotplug_update_tasks_legacy(). So
just skip it.

Signed-off-by: Waiman Long <longman@redhat.com>
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c