knfsd: add file to export stats about nfsd pools
[firefly-linux-kernel-4.4.55.git] / include / linux / cgroup.h
index e267e62827bbc4e564c930576fcee8b70a8c4a79..499900d0cee7110748229ee3898b50734352e5e4 100644 (file)
@@ -99,6 +99,7 @@ static inline bool css_tryget(struct cgroup_subsys_state *css)
        while (!atomic_inc_not_zero(&css->refcnt)) {
                if (test_bit(CSS_REMOVED, &css->flags))
                        return false;
+               cpu_relax();
        }
        return true;
 }
@@ -377,6 +378,7 @@ struct cgroup_subsys {
         * - initiating hotplug events
         */
        struct mutex hierarchy_mutex;
+       struct lock_class_key subsys_key;
 
        /*
         * Link to parent, and list entry in parent's children.