]> err.no Git - linux-2.6/commit
[PATCH] proc: Remove tasklist_lock from proc_task_readdir.
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 26 Jun 2006 07:26:01 +0000 (00:26 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:26 +0000 (09:58 -0700)
commitcc288738c9ae3c64d3c50b86604044d1f6d22941
tree87058616bfa84572647fbe574fe733e81c1d17b6
parentdf26c40e567356caeefe2861311e19c54444d917
[PATCH] proc: Remove tasklist_lock from proc_task_readdir.

This is just like my previous removal of tasklist_lock from first_tgid, and
next_tgid.  It simply had to wait until it was rcu safe to walk the thread
list.

This should be the last instance of the tasklist_lock in proc.  So user
processes should not be able to influence the tasklist lock hold times.

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