From 0fc09411faf0ee0b689b4748eecf8358925f4da5 Mon Sep 17 00:00:00 2001 From: Li Zefan Date: Tue, 15 Jan 2013 14:10:57 +0800 Subject: [PATCH] --- yaml --- r: 350352 b: refs/heads/master c: 27e89ae5d6e94e30231ee89a7736f62d84ba4c6f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/cpuset.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index b6e074816300..aba58498ae7b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f47b89c73ce7535339525c141a6a114db333f0bd +refs/heads/master: 27e89ae5d6e94e30231ee89a7736f62d84ba4c6f diff --git a/trunk/kernel/cpuset.c b/trunk/kernel/cpuset.c index 6aa5bbb5f33b..1a675e446ef2 100644 --- a/trunk/kernel/cpuset.c +++ b/trunk/kernel/cpuset.c @@ -2678,15 +2678,15 @@ static int proc_cpuset_show(struct seq_file *m, void *unused_v) goto out_free; retval = -EINVAL; - mutex_lock(&cpuset_mutex); + rcu_read_lock(); css = task_subsys_state(tsk, cpuset_subsys_id); retval = cgroup_path(css->cgroup, buf, PAGE_SIZE); + rcu_read_unlock(); if (retval < 0) - goto out_unlock; + goto out_put_task; seq_puts(m, buf); seq_putc(m, '\n'); -out_unlock: - mutex_unlock(&cpuset_mutex); +out_put_task: put_task_struct(tsk); out_free: kfree(buf);