From: Sven Wegener Date: Sun, 10 Aug 2008 09:17:59 +0000 (+0000) Subject: ipvs: Fix possible deadlock in estimator code X-Git-Tag: v2.6.27-rc4~103^2~43^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ab19ea36c5c5340ff598e4d15fc084eb65671dc;p=pandora-kernel.git ipvs: Fix possible deadlock in estimator code There is a slight chance for a deadlock in the estimator code. We can't call del_timer_sync() while holding our lock, as the timer might be active and spinning for the lock on another cpu. Work around this issue by using try_to_del_timer_sync() and releasing the lock. We could actually delete the timer outside of our lock, as the add and kill functions are only every called from userspace via [gs]etsockopt() and are serialized by a mutex, but better make this explicit. Signed-off-by: Sven Wegener Cc: stable Acked-by: Simon Horman --- Reading git-diff-tree failed