]> git.baikalelectronics.ru Git - kernel.git/commit
ipvs: Use kthread_run() instead of doing a double-fork via kernel_thread()
authorSven Wegener <sven.wegener@stealer.net>
Wed, 16 Jul 2008 11:13:50 +0000 (11:13 +0000)
committerSven Wegener <sven.wegener@stealer.net>
Wed, 16 Jul 2008 22:33:20 +0000 (22:33 +0000)
commitae4fa0f729fc30b7c7fdd4de3e173edaf6a877eb
tree42c5617f9fc180457e7f6f98326edf489a671086
parentc0d9f5385efeb318cdb864db7dd1d8f07a73bf89
ipvs: Use kthread_run() instead of doing a double-fork via kernel_thread()

This also moves the setup code out of the daemons, so that we're able to
return proper error codes to user space. The current code will return success
to user space when the daemon is started with an invald mcast interface. With
these changes we get an appropriate "No such device" error.

We longer need our own completion to be sure the daemons are actually running,
because they no longer contain code that can fail and kthread_run() takes care
of the rest.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Acked-by: Simon Horman <horms@verge.net.au>
net/ipv4/ipvs/ip_vs_sync.c