]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ipvs: Create init functions for estimator code
authorSven Wegener <sven.wegener@stealer.net>
Wed, 13 Aug 2008 22:47:16 +0000 (00:47 +0200)
committerSimon Horman <horms@verge.net.au>
Thu, 14 Aug 2008 23:26:15 +0000 (09:26 +1000)
commita919cf4b6b499416b6e2247dbc79196c4325f2e6
tree07125d10469cb9d2779280a0f389848b5e045b5a
parent82dfb6f32219d8e6cf6b979a520cb2b11d977d4e
ipvs: Create init functions for estimator code

Commit 8ab19ea36c5c5340ff598e4d15fc084eb65671dc ("ipvs: Fix possible deadlock
in estimator code") fixed a deadlock condition, but that condition can only
happen during unload of IPVS, because during normal operation there is at least
our global stats structure in the estimator list. The mod_timer() and
del_timer_sync() calls are actually initialization and cleanup code in
disguise. Let's make it explicit and move them to their own init and cleanup
function.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Signed-off-by: Simon Horman <horms@verge.net.au>
include/net/ip_vs.h
net/ipv4/ipvs/ip_vs_core.c
net/ipv4/ipvs/ip_vs_est.c