summaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorWaiman Long <longman@redhat.com>2021-07-20 10:18:27 -0400
committerTejun Heo <tj@kernel.org>2021-07-26 12:59:05 -1000
commit15d428e6fe77fffc3f4fff923336036f5496ef17 (patch)
treefeee2b28339093b7f3a76d762080d22d7c243716 /net/unix/sysctl_net_unix.c
parent0f3adb8a1e5f36e792598c1d77a2cfac9c90a4f9 (diff)
downloadlinux-stable-15d428e6fe77fffc3f4fff923336036f5496ef17.tar.gz
linux-stable-15d428e6fe77fffc3f4fff923336036f5496ef17.tar.bz2
linux-stable-15d428e6fe77fffc3f4fff923336036f5496ef17.zip
cgroup/cpuset: Fix a partition bug with hotplug
In cpuset_hotplug_workfn(), the detection of whether the cpu list has been changed is done by comparing the effective cpus of the top cpuset with the cpu_active_mask. However, in the rare case that just all the CPUs in the subparts_cpus are offlined, the detection fails and the partition states are not updated correctly. Fix it by forcing the cpus_updated flag to true in this particular case. Fixes: 4b842da276a8 ("cpuset: Make CPU hotplug work with partition") Signed-off-by: Waiman Long <longman@redhat.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions