]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/linux/cgroup-defs.h
compat_ioctl: pppoe: fix PPPOEIOCSFWD handling
[mirror_ubuntu-bionic-kernel.git] / include / linux / cgroup-defs.h
index 50db7040de757cb5053ce4edce78f14e9cd7399a..36574ab921321bdec9d14825508be87e3dba831f 100644 (file)
@@ -339,6 +339,11 @@ struct cgroup {
         * Dying cgroups are cgroups which were deleted by a user,
         * but are still existing because someone else is holding a reference.
         * max_descendants is a maximum allowed number of descent cgroups.
+        *
+        * nr_descendants and nr_dying_descendants are protected
+        * by cgroup_mutex and css_set_lock. It's fine to read them holding
+        * any of cgroup_mutex and css_set_lock; for writing both locks
+        * should be held.
         */
        int nr_descendants;
        int nr_dying_descendants;