]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Avoid taking global tasklist_lock for single threadedprocess at getrusage()
authorRavikiran G Thirumalai <kiran@scalex86.org>
Thu, 23 Mar 2006 11:00:13 +0000 (03:00 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 23 Mar 2006 15:38:09 +0000 (07:38 -0800)
commit79a3593e7bb9a948ba65b5ad86309d05e319c6ae
tree17518ebe86c2b701aa4a74fcac025c1793a87a87
parentf3e215c6d9b934e884eedbab290e3573c356f170
[PATCH] Avoid taking global tasklist_lock for single threadedprocess at getrusage()

Avoid taking the global tasklist_lock when possible, if a process is single
threaded during getrusage().  Any avoidance of tasklist_lock is good for
NUMA boxes (and possibly for large SMPs).  Thanks to Oleg Nesterov for
review and suggestions.

Signed-off-by: Nippun Goel <nippung@calsoftinc.com>
Signed-off-by: Ravikiran Thirumalai <kiran@scalex86.org>
Signed-off-by: Shai Fultheim <shai@scalex86.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/sys.c