Skip to content

Commit

Permalink
ipvs: Fix race conditions in lblcr scheduler
Browse files Browse the repository at this point in the history
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 <sven.wegener@stealer.net>
Signed-off-by: Simon Horman <horms@verge.net.au>
  • Loading branch information
Sven Wegener authored and Simon Horman committed Aug 19, 2008
1 parent 39ac50d commit f728baf
Showing 1 changed file with 114 additions and 115 deletions.
Loading

0 comments on commit f728baf

Please sign in to comment.