From: Sven Wegener Date: Tue, 19 Aug 2008 06:16:19 +0000 (+0200) Subject: ipvs: Fix race conditions in lblcr scheduler X-Git-Tag: v2.6.28-rc1~717^2~282^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f728bafb5698076dd35bca35ee6cfe52ea1b8ab2;p=pandora-kernel.git ipvs: Fix race conditions in lblcr scheduler We can't access the cache entry outside of our critical read-locked region, because someone may free that entry. Also getting an entry under read lock, then locking for write and trying to delete that entry looks fishy, but should be no problem here, because we're only comparing a pointer. Also there is no need for our own rwlock, there is already one in the service structure for use in the schedulers. Signed-off-by: Sven Wegener Signed-off-by: Simon Horman --- Reading git-diff-tree failed