diff options
Diffstat (limited to 'kernel/cgroup/debug.c')
-rw-r--r-- | kernel/cgroup/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cgroup/debug.c b/kernel/cgroup/debug.c index 5f780d8f6a9d..9caeda610249 100644 --- a/kernel/cgroup/debug.c +++ b/kernel/cgroup/debug.c | |||
@@ -50,7 +50,7 @@ static int current_css_set_read(struct seq_file *seq, void *v) | |||
50 | 50 | ||
51 | spin_lock_irq(&css_set_lock); | 51 | spin_lock_irq(&css_set_lock); |
52 | rcu_read_lock(); | 52 | rcu_read_lock(); |
53 | cset = rcu_dereference(current->cgroups); | 53 | cset = task_css_set(current); |
54 | refcnt = refcount_read(&cset->refcount); | 54 | refcnt = refcount_read(&cset->refcount); |
55 | seq_printf(seq, "css_set %pK %d", cset, refcnt); | 55 | seq_printf(seq, "css_set %pK %d", cset, refcnt); |
56 | if (refcnt > cset->nr_tasks) | 56 | if (refcnt > cset->nr_tasks) |
@@ -96,7 +96,7 @@ static int current_css_set_cg_links_read(struct seq_file *seq, void *v) | |||
96 | 96 | ||
97 | spin_lock_irq(&css_set_lock); | 97 | spin_lock_irq(&css_set_lock); |
98 | rcu_read_lock(); | 98 | rcu_read_lock(); |
99 | cset = rcu_dereference(current->cgroups); | 99 | cset = task_css_set(current); |
100 | list_for_each_entry(link, &cset->cgrp_links, cgrp_link) { | 100 | list_for_each_entry(link, &cset->cgrp_links, cgrp_link) { |
101 | struct cgroup *c = link->cgrp; | 101 | struct cgroup *c = link->cgrp; |
102 | 102 | ||