Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 164758
b: refs/heads/master
c: 9b4d1cb
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Sep 23, 2009
1 parent 3f7c938 commit d8e5f06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: cff4edb591c153a779a27a3fd8e7bc1217f2f6b8
refs/heads/master: 9b4d1cbef8f41aff2b3e4ca31f566c071fe601de
10 changes: 3 additions & 7 deletions trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2604,9 +2604,6 @@ static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid)
dput(dentry);
}

if (tgid == 0)
goto out;

name.name = buf;
name.len = snprintf(buf, sizeof(buf), "%d", tgid);
leader = d_hash_and_lookup(mnt->mnt_root, &name);
Expand Down Expand Up @@ -2663,17 +2660,16 @@ static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid)
void proc_flush_task(struct task_struct *task)
{
int i;
struct pid *pid, *tgid = NULL;
struct pid *pid, *tgid;
struct upid *upid;

pid = task_pid(task);
if (thread_group_leader(task))
tgid = task_tgid(task);
tgid = task_tgid(task);

for (i = 0; i <= pid->level; i++) {
upid = &pid->numbers[i];
proc_flush_task_mnt(upid->ns->proc_mnt, upid->nr,
tgid ? tgid->numbers[i].nr : 0);
tgid->numbers[i].nr);
}

upid = &pid->numbers[pid->level];
Expand Down

0 comments on commit d8e5f06

Please sign in to comment.