kthread: Don't looking for a task in create_kthread() #2
authorVitaliy Gusev <vgusev@openvz.org>
Thu, 9 Apr 2009 15:50:35 +0000 (09:50 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 9 Apr 2009 00:20:36 +0000 (09:50 +0930)
commit3217ab97f14c5c8f9f975ed8c40c351164b0b10e
tree3bb4b32e9a1e5b96915fbce57184d55f74e43fe9
parent7b85a88ca7760d6d5f34bdaa793c71d921a3e853
kthread: Don't looking for a task in create_kthread() #2

Remove the unnecessary find_task_by_pid_ns(). kthread() can just
use "current" to get the same result.

Signed-off-by: Vitaliy Gusev <vgusev@openvz.org>
Acked-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/kthread.c