]> git.hungrycats.org Git - linux/commit
[PATCH] detach_pid(): eliminate one find_pid() call
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 20 Oct 2004 01:31:59 +0000 (18:31 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 20 Oct 2004 01:31:59 +0000 (18:31 -0700)
commit1ce3ad5d6a1f9b5e24310406b72db19948504a25
tree54938854f64eff223d0a634c7b354dfce6049b98
parente45f49036ada350ab9936546b4d3a8d9bac4f106
[PATCH] detach_pid(): eliminate one find_pid() call

Now there is no point in calling costly find_pid(type) if
__detach_pid(type) returned non zero value.

Acked-By: Kirill Korotaev <dev@sw.ru>
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/pid.c