[PATCH] taskstats: kill ->taskstats_lock in favor of ->siglock
authorOleg Nesterov <oleg@tv-sign.ru>
Sat, 28 Oct 2006 17:38:53 +0000 (10:38 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 28 Oct 2006 18:30:54 +0000 (11:30 -0700)
commitb8534d7bd89df0cd41cd47bcd6733a05ea9a691a
treec4650f417d7f05a9c645d6a0b1f64405ec4c8a39
parent17b02695b254aa2ef0e53df9c8e6548f86e66a9d
[PATCH] taskstats: kill ->taskstats_lock in favor of ->siglock

signal_struct is (mostly) protected by ->sighand->siglock, I think we don't
need ->taskstats_lock to protect ->stats.  This also allows us to simplify the
locking in fill_tgid().

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>
include/linux/sched.h
include/linux/taskstats_kern.h
kernel/fork.c
kernel/taskstats.c