]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] proc: Fix the link count for /proc/<pid>/task
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 26 Jun 2006 07:25:47 +0000 (00:25 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:24 +0000 (09:58 -0700)
commite219fb665d75d8426145b4517f9c2e792e5760f9
tree18b630e89490f7e01ee45f07a427fded50a1c6cf
parentcc982b69f86d29cc8b041ac082005c7f8201162a
[PATCH] proc: Fix the link count for /proc/<pid>/task

Use getattr to get an accurate link count when needed.  This is cheaper and
more accurate than trying to derive it by walking the thread list of a
process.

Especially as it happens when needed stat instead of at readdir time.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/base.c