summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authorDaniel Borkmann <daniel@iogearbox.net>2015-04-21 10:47:23 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2015-04-21 10:49:16 +0200
commitfb1c7820fd6a30224f98175b481b981efadf7673 (patch)
treea99de35b9b99ce161ca1fd0ca0438eaadeda4e50 /hash.c
parentf43bbe9e895a05a71ebfa5fb676f068621bd5014 (diff)
docs: authors: add Eric for his patch contribution
For commit 319840b83b70 ("trafgen: disable timer slack"). Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'hash.c')
0 files changed, 0 insertions, 0 deletions
ca6d1b9daf3cc7046902f (diff)
ipvs: free ip_vs_dest structs when refcnt=0
Currently, the ip_vs_dest cache frees ip_vs_dest objects when their reference count becomes < 0. Aside from not being semantically sound, this is problematic for the new type refcount_t, which will be introduced shortly in a separate patch. refcount_t is the new kernel type for holding reference counts, and provides overflow protection and a constrained interface relative to atomic_t (the type currently being used for kernel reference counts). Per Julian Anastasov: "The problem is that dest_trash currently holds deleted dests (unlinked from RCU lists) with refcnt=0." Changing dest_trash to hold dest with refcnt=1 will allow us to free ip_vs_dest structs when their refcnt=0, in ip_vs_dest_put_and_free(). Signed-off-by: David Windsor <dwindsor@gmail.com> Signed-off-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/ipvs/ip_vs_ctl.c')
-rw-r--r--net/netfilter/ipvs/ip_vs_ctl.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c