]> git.baikalelectronics.ru Git - kernel.git/commit
exit: proc: don't try to flush /proc/tgid/task/tgid
authorOleg Nesterov <oleg@redhat.com>
Wed, 10 Dec 2014 23:54:56 +0000 (15:54 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:17 +0000 (17:41 -0800)
commitef132399b58850b8ae116c163cb6faa9ea43fc65
treeed31c75a45ffe68305833eb9c93257b209631886
parent3699d8f2a8ca57201fa233e26bf2fa28b7043c2c
exit: proc: don't try to flush /proc/tgid/task/tgid

proc_flush_task_mnt() always tries to flush task/pid, but this is
pointless if we reap the leader. d_invalidate() is recursive, and
if nothing else the next d_hash_and_lookup(tgid) should fail anyway.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Cc: Aaron Tomlin <atomlin@redhat.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Sterling Alexander <stalexan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/base.c