Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 71454
b: refs/heads/master
c: 130f77e
h: refs/heads/master
v: v3
  • Loading branch information
Pavel Emelyanov authored and Linus Torvalds committed Oct 19, 2007
1 parent a4cbfda commit a68d80d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 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: 30e49c263e36341b60b735cbef5ca37912549264
refs/heads/master: 130f77ecb2e7d5ac3e53e620f55e374f4a406b20
18 changes: 16 additions & 2 deletions trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2259,8 +2259,22 @@ static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid)

void proc_flush_task(struct task_struct *task)
{
proc_flush_task_mnt(proc_mnt, task->pid,
thread_group_leader(task) ? 0 : task->tgid);
int i, leader;
struct pid *pid, *tgid;
struct upid *upid;

leader = thread_group_leader(task);
proc_flush_task_mnt(proc_mnt, task->pid, leader ? task->tgid : 0);
pid = task_pid(task);
if (pid->level == 0)
return;

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

static struct dentry *proc_pid_instantiate(struct inode *dir,
Expand Down

0 comments on commit a68d80d

Please sign in to comment.