]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[IPVS]: Fix state variable on failure to start ipvs threads
authorNeil Horman <nhorman@tuxdriver.com>
Tue, 19 Jun 2007 05:33:20 +0000 (22:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jun 2007 05:33:20 +0000 (22:33 -0700)
commitcc0191aeef73e5aa0c7f9a586d4bb27ed67facbb
treec432069053def48651313d2d1f0d206159d8f667
parent281216177a407f78cfd650ee4391afc487577193
[IPVS]: Fix state variable on failure to start ipvs threads

ip_vs currently fails to reset its ip_vs_sync_state variable if the
sync thread fails to start properly.  The result is that the kernel
will report a running daemon when their actuall is none.

If you issue the following commands:

1. ipvsadm --start-daemon master --mcast-interface bla
2. ipvsadm -L --daemon
3. ipvsadm --stop-daemon master

Assuming that bla is not an actual interface, step 2 should return no
data, but instead returns:

$ ipvsadm -L --daemon
master sync daemon (mcast=bla, syncid=0)

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipvs/ip_vs_sync.c