diff options
-rw-r--r-- | fs/proc/base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index cd9f84c4bbf5..c59852b38787 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c | |||
@@ -2321,7 +2321,8 @@ static void proc_flush_task_mnt(struct vfsmount *mnt, pid_t pid, pid_t tgid) | |||
2321 | name.len = snprintf(buf, sizeof(buf), "%d", pid); | 2321 | name.len = snprintf(buf, sizeof(buf), "%d", pid); |
2322 | dentry = d_hash_and_lookup(mnt->mnt_root, &name); | 2322 | dentry = d_hash_and_lookup(mnt->mnt_root, &name); |
2323 | if (dentry) { | 2323 | if (dentry) { |
2324 | shrink_dcache_parent(dentry); | 2324 | if (!(current->flags & PF_EXITING)) |
2325 | shrink_dcache_parent(dentry); | ||
2325 | d_drop(dentry); | 2326 | d_drop(dentry); |
2326 | dput(dentry); | 2327 | dput(dentry); |
2327 | } | 2328 | } |