Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30250
b: refs/heads/master
c: de75873
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Jun 26, 2006
1 parent ff5f756 commit cbccb03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 454cc105ef690f2a0ba7c6b194d55666b4e918ce
refs/heads/master: de7587343bfebc186995ad294e3de0da382eb9bc
8 changes: 4 additions & 4 deletions trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1940,11 +1940,11 @@ struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, struct
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;

Expand Down Expand Up @@ -1988,11 +1988,11 @@ static struct dentry *proc_task_lookup(struct inode *dir, struct dentry * dentry
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)
Expand Down

0 comments on commit cbccb03

Please sign in to comment.