Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9213
b: refs/heads/master
c: 0678e5f
h: refs/heads/master
i:
  9211: 28145d3
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Sep 23, 2005
1 parent cb302e2 commit 44d4efc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: e53897e2fb48526a62116ef8e72d7441d5ee8752
refs/heads/master: 0678e5feaab8b359b18858e8532bb6017edb112b
8 changes: 5 additions & 3 deletions trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ static int proc_root_link(struct inode *inode, struct dentry **dentry, struct vf

/* Same as proc_root_link, but this addionally tries to get fs from other
* threads in the group */
static int proc_task_root_link(struct inode *inode, struct dentry **dentry, struct vfsmount **mnt)
static int proc_task_root_link(struct inode *inode, struct dentry **dentry,
struct vfsmount **mnt)
{
struct fs_struct *fs;
int result = -ENOENT;
Expand All @@ -357,9 +358,10 @@ static int proc_task_root_link(struct inode *inode, struct dentry **dentry, stru
} else {
/* Try to get fs from other threads */
task_unlock(leader);
struct task_struct *task = leader;
read_lock(&tasklist_lock);
if (pid_alive(task)) {
if (pid_alive(leader)) {
struct task_struct *task = leader;

while ((task = next_thread(task)) != leader) {
task_lock(task);
fs = task->fs;
Expand Down

0 comments on commit 44d4efc

Please sign in to comment.