diff options
Diffstat (limited to 'kernel/cpuset.c')
-rw-r--r-- | kernel/cpuset.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/cpuset.c b/kernel/cpuset.c index ace5bfcdcb30..efbfca7a33e4 100644 --- a/kernel/cpuset.c +++ b/kernel/cpuset.c | |||
@@ -2599,6 +2599,7 @@ void cpuset_print_task_mems_allowed(struct task_struct *tsk) | |||
2599 | 2599 | ||
2600 | struct cgroup *cgrp = task_cs(tsk)->css.cgroup; | 2600 | struct cgroup *cgrp = task_cs(tsk)->css.cgroup; |
2601 | 2601 | ||
2602 | rcu_read_lock(); | ||
2602 | spin_lock(&cpuset_buffer_lock); | 2603 | spin_lock(&cpuset_buffer_lock); |
2603 | 2604 | ||
2604 | nodelist_scnprintf(cpuset_nodelist, CPUSET_NODELIST_LEN, | 2605 | nodelist_scnprintf(cpuset_nodelist, CPUSET_NODELIST_LEN, |
@@ -2607,6 +2608,7 @@ void cpuset_print_task_mems_allowed(struct task_struct *tsk) | |||
2607 | tsk->comm, cgroup_name(cgrp), cpuset_nodelist); | 2608 | tsk->comm, cgroup_name(cgrp), cpuset_nodelist); |
2608 | 2609 | ||
2609 | spin_unlock(&cpuset_buffer_lock); | 2610 | spin_unlock(&cpuset_buffer_lock); |
2611 | rcu_read_unlock(); | ||
2610 | } | 2612 | } |
2611 | 2613 | ||
2612 | /* | 2614 | /* |