Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30249
b: refs/heads/master
c: 454cc10
h: refs/heads/master
i:
  30247: 10a741f
v: v3
  • Loading branch information
Eric W. Biederman authored and Linus Torvalds committed Jun 26, 2006
1 parent 2438c8a commit ff5f756
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: 0bc58a910220be3446eedc8e77fd45c0a16d8f25
refs/heads/master: 454cc105ef690f2a0ba7c6b194d55666b4e918ce
8 changes: 4 additions & 4 deletions trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2043,7 +2043,7 @@ static struct dentry *proc_task_lookup(struct inode *dir, struct dentry * dentry
static struct task_struct *first_tgid(int tgid, int nr)
{
struct task_struct *pos = NULL;
read_lock(&tasklist_lock);
rcu_read_lock();
if (tgid && nr) {
pos = find_task_by_pid(tgid);
if (pos && !thread_group_leader(pos))
Expand All @@ -2069,7 +2069,7 @@ static struct task_struct *first_tgid(int tgid, int nr)
}
pos = NULL;
done:
read_unlock(&tasklist_lock);
rcu_read_unlock();
return pos;
}

Expand All @@ -2082,7 +2082,7 @@ static struct task_struct *first_tgid(int tgid, int nr)
static struct task_struct *next_tgid(struct task_struct *start)
{
struct task_struct *pos;
read_lock(&tasklist_lock);
rcu_read_lock();
pos = start;
if (pid_alive(start))
pos = next_task(start);
Expand All @@ -2092,7 +2092,7 @@ static struct task_struct *next_tgid(struct task_struct *start)
}
pos = NULL;
done:
read_unlock(&tasklist_lock);
rcu_read_unlock();
put_task_struct(start);
return pos;
}
Expand Down

0 comments on commit ff5f756

Please sign in to comment.