Oleg Nesterov 4a279ff1ea [PATCH] taskstats: fix sub-threads accounting
If there are no listeners, taskstats_exit_send() just returns because
taskstats_exit_alloc() didn't allocate *tidstats.  This is wrong, each
sub-thread should do fill_tgid_exit() on exit, otherwise its ->delays is
not recorded in ->signal->stats and lost.

Q: We don't send TASKSTATS_TYPE_AGGR_TGID when single-threaded process
exits.  Is it good?  How can the listener figure out that it was actually a
process exit, not sub-thread?

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Cc: Balbir Singh <balbir@in.ibm.com>
Acked-by: Shailabh Nagar <nagar@watson.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-31 08:07:00 -08:00
..
2006-10-17 08:18:44 -07:00
2006-10-06 08:53:39 -07:00
2006-09-11 13:32:30 -04:00
2006-10-04 08:31:21 -04:00
2006-09-29 09:18:12 -07:00
2006-10-10 15:37:23 -07:00
2006-10-03 08:03:41 -07:00
2006-10-28 11:30:54 -07:00
2006-10-10 15:37:22 -07:00
2006-03-26 08:57:03 -08:00
2006-09-29 09:18:15 -07:00
2006-10-02 07:57:23 -07:00
2006-07-03 15:27:04 -07:00
2006-09-30 01:47:55 +02:00
2006-09-29 09:18:12 -07:00
2005-04-16 15:20:36 -07:00
2006-10-16 09:14:05 -07:00
2006-10-20 10:26:38 -07:00
2006-10-01 00:39:27 -07:00
2006-04-19 16:27:18 -07:00
2006-07-10 13:24:25 -07:00