• Sven Wegener's avatar
    ipvs: Fix race conditions in lblcr scheduler · f728bafb
    Sven Wegener authored
    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: default avatarSven Wegener <sven.wegener@stealer.net>
    Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
    f728bafb
ip_vs_lblcr.c 18.6 KB