summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/rpc_pipe.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@tv-sign.ru>2006-12-07 05:36:50 +0100
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 17:39:34 +0100
commit128fb95650b3273a8dc9ba5514b6fe7db8ea30bf (patch)
tree82e8070451edbd7421b6176083658f5f2b997b58 /net/sunrpc/rpc_pipe.c
parent[PATCH] read_cache_pages() cleanup (diff)
downloadlinux-128fb95650b3273a8dc9ba5514b6fe7db8ea30bf.tar.xz
linux-128fb95650b3273a8dc9ba5514b6fe7db8ea30bf.zip
[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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions