aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy.c
diff options
context:
space:
mode:
authorYafang Shao <[email protected]>2023-10-29 06:14:29 +0000
committerTejun Heo <[email protected]>2023-11-09 13:25:47 -1000
commitd23b5c577715892c87533b13923306acc6243f93 (patch)
tree34dd5580faefac6cad9daf46e27e471d0166a60c /lib/test_fortify/write_overflow-strncpy.c
parent96a2b48e5e1df6698f504969f0f51dc34e52ff3d (diff)
cgroup: Make operations on the cgroup root_list RCU safe
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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions