diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2006-10-28 19:38:54 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-28 20:30:54 +0200 |
commit | a98b6094261c0112e9c455c96995972181bff049 (patch) | |
tree | 01a15d79e331730de5a255a7109cf1318b95f6ac /kernel/rcupdate.c | |
parent | [PATCH] taskstats: kill ->taskstats_lock in favor of ->siglock (diff) | |
download | linux-a98b6094261c0112e9c455c96995972181bff049.tar.xz linux-a98b6094261c0112e9c455c96995972181bff049.zip |
[PATCH] taskstats: don't use tasklist_lock
Remove tasklist_lock from taskstats.c. find_task_by_pid() is rcu-safe.
->siglock allows us to traverse subthread without tasklist.
Q: delay accounting looks wrong to me. If sub-thread has already called
taskstats_exit_send() but didn't call release_task(self) yet it will be
accounted twice. The window is big. No?
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Shailabh Nagar <nagar@watson.ibm.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Jay Lan <jlan@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/rcupdate.c')
0 files changed, 0 insertions, 0 deletions