aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/base.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/proc/base.c')
-rw-r--r--fs/proc/base.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c
index 772efa45a452..e7b04a321cc1 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -2618,6 +2618,9 @@ static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid)
2618 dput(dentry); 2618 dput(dentry);
2619 } 2619 }
2620 2620
2621 if (pid == tgid)
2622 return;
2623
2621 name.name = buf; 2624 name.name = buf;
2622 name.len = snprintf(buf, sizeof(buf), "%d", tgid); 2625 name.len = snprintf(buf, sizeof(buf), "%d", tgid);
2623 leader = d_hash_and_lookup(mnt->mnt_root, &name); 2626 leader = d_hash_and_lookup(mnt->mnt_root, &name);