Oleg Nesterov 128fb95650 [PATCH] taskstats_exit_alloc: optimize/simplify
If there are no listeners, every task does unneeded kmem_cache alloc/free on
exit. We don't need listeners->sem for 'if (!list_empty())' check. Yes, we may
have a false positive, but this doesn't differ from the case when the listener
is unregistered after we drop the semaphore. So we don't need to do allocation
beforehand.

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-12-07 08:39:34 -08:00
..
2006-09-11 13:32:30 -04:00
2006-09-29 09:18:12 -07:00
2006-12-07 08:39:25 -08:00
2006-10-03 08:03:41 -07:00
2006-10-28 11:30:54 -07:00
2006-03-26 08:57:03 -08:00
2006-09-29 09:18:15 -07:00
2006-12-04 02:00:22 -05:00
2006-07-03 15:27:04 -07:00
2006-12-04 02:00:22 -05:00
2006-09-30 01:47:55 +02:00
2006-12-07 08:39:25 -08:00
2006-11-03 12:27:58 -08:00
2006-09-29 09:18:12 -07:00
2006-11-22 14:57:56 +00:00
2006-12-07 08:39:32 -08:00
2005-04-16 15:20:36 -07:00
2006-10-01 00:39:27 -07:00
2006-04-19 16:27:18 -07:00
2006-12-07 08:39:25 -08:00
2006-07-10 13:24:25 -07:00