kernel_samsung_a53x/kernel/cgroup
Yafang Shao 6c357bd6a8 cgroup: Make operations on the cgroup root_list RCU safe
[ Upstream commit d23b5c577715892c87533b13923306acc6243f93 ]

At present, when we perform operations on the cgroup root_list, we must
hold the cgroup_mutex, which is a relatively heavyweight lock. In reality,
we can make operations on this list RCU-safe, eliminating the need to hold
the cgroup_mutex during traversal. Modifications to the list only occur in
the cgroup root setup and destroy paths, which should be infrequent in a
production environment. In contrast, traversal may occur frequently.
Therefore, making it RCU-safe would be beneficial.

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:21:15 +01:00
..
cgroup-internal.h cgroup: Make operations on the cgroup root_list RCU safe 2024-11-23 23:21:15 +01:00
cgroup-v1.c
cgroup.c cgroup: Make operations on the cgroup root_list RCU safe 2024-11-23 23:21:15 +01:00
cpuset.c cgroup/cpuset: Prevent UAF in proc_cpuset_show() 2024-11-23 23:20:54 +01:00
debug.c
freezer.c
legacy_freezer.c
Makefile
namespace.c
pids.c
rdma.c
rstat.c