]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/cgroup.h
cgroups: use a hash table for css_set finding
[linux-2.6-omap-h63xx.git] / include / linux / cgroup.h
index 2d1d151258cfcf9b751e5c53bf36e853782cde9e..f585b7cde87b32191351204caaa3a4352e942a6c 100644 (file)
@@ -155,6 +155,12 @@ struct css_set {
         */
        struct list_head list;
 
+       /*
+        * List running through all cgroup groups in the same hash
+        * slot. Protected by css_set_lock
+        */
+       struct hlist_node hlist;
+
        /*
         * List running through all tasks using this cgroup
         * group. Protected by css_set_lock
@@ -174,7 +180,6 @@ struct css_set {
         * during subsystem registration (at boot time).
         */
        struct cgroup_subsys_state *subsys[CGROUP_SUBSYS_COUNT];
-
 };
 
 /*