aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2018-04-26 21:29:06 +0000
committerTejun Heo <[email protected]>2018-04-26 21:29:06 +0000
commitc43c5ea75fd53cae3c8b63e1a27efc4cff6508d3 (patch)
tree9144ead9ae1b39efb3382edc7f025f9eff75a319 /fs/proc/array.c
parentcgroup: Add memory barriers to plug cgroup_rstat_updated() race window (diff)
downloadkernel-c43c5ea75fd53cae3c8b63e1a27efc4cff6508d3.tar.gz
kernel-c43c5ea75fd53cae3c8b63e1a27efc4cff6508d3.zip
cgroup: Make cgroup_rstat_updated() ready for root cgroup usage
cgroup_rstat_updated() ensures that the cgroup's rstat is linked to the parent. If there's no parent, it never gets linked and the function ends up grabbing and releasing the cgroup_rstat_lock each time for no reason which can be expensive. This hasn't been a problem till now because nobody was calling the function for the root cgroup but rstat is gonna be exposed to controllers and use cases, so let's get ready. Make cgroup_rstat_updated() an no-op for the root cgroup. Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions