cgroup: cgroup.{procs,threads} factor out common parts
mainline inclusion from mainline-v5.12-rc1 commit da70862e bugzilla: 186050 https://gitee.com/openeuler/kernel/issues/I4DDEL CVE: CVE-2021-4197 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=da70862efe0065bada33d67a903270cdbbaf07d9 -------------------------------- The functions cgroup_threads_write and cgroup_procs_write are almost identical. In order to reduce duplication, factor out the common code in similar fashion we already do for other threadgroup/task functions. No functional changes are intended. Suggested-by: NHao Lee <haolee.swjtu@gmail.com> Signed-off-by: NMichal Koutný <mkoutny@suse.com> Reviewed-by: NDaniel Jordan <daniel.m.jordan@oracle.com> Signed-off-by: NTejun Heo <tj@kernel.org> Signed-off-by: NLu Jialin <lujialin4@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录