[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>
This commit is contained in:
parent
17b02695b2
commit
b8534d7bd8
4 changed files with 13 additions and 21 deletions
|
@ -466,7 +466,6 @@ struct signal_struct {
|
|||
struct pacct_struct pacct; /* per-process accounting information */
|
||||
#endif
|
||||
#ifdef CONFIG_TASKSTATS
|
||||
spinlock_t stats_lock;
|
||||
struct taskstats *stats;
|
||||
#endif
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue