From: Eric W. Biederman Since we no longer need the tasklist_lock for get_task_struct the lookup methods no longer need the tasklist_lock. This just depends on my previous patch that makes get_task_struct() rcu safe. Signed-off-by: Eric W. Biederman Signed-off-by: Andrew Morton --- fs/proc/base.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff -puN fs/proc/base.c~proc-remove-tasklist_lock-from-proc_pid_lookup-and fs/proc/base.c --- 25/fs/proc/base.c~proc-remove-tasklist_lock-from-proc_pid_lookup-and Thu Mar 9 16:50:15 2006 +++ 25-akpm/fs/proc/base.c Thu Mar 9 16:50:15 2006 @@ -1924,11 +1924,11 @@ struct dentry *proc_pid_lookup(struct in if (tgid == ~0U) goto out; - read_lock(&tasklist_lock); + rcu_read_lock(); task = find_task_by_pid(tgid); if (task) get_task_struct(task); - read_unlock(&tasklist_lock); + rcu_read_unlock(); if (!task) goto out; @@ -1972,11 +1972,11 @@ static struct dentry *proc_task_lookup(s if (tid == ~0U) goto out; - read_lock(&tasklist_lock); + rcu_read_lock(); task = find_task_by_pid(tid); if (task) get_task_struct(task); - read_unlock(&tasklist_lock); + rcu_read_unlock(); if (!task) goto out; if (leader->tgid != task->tgid) _