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: Remove duplicates in cgroup v1 tasks file 2024-11-08 11:25:51 +01:00
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 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
freezer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
legacy_freezer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
namespace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pids.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rdma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rstat.c cgroup: rstat: punt root-level optimization to individual controllers 2024-11-19 17:40:21 +01:00