diff options
author | Eric Dumazet <edumazet@google.com> | 2015-07-08 14:28:29 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-09 15:12:20 -0700 |
commit | fc01538f9fb75572c969ca9988176ffc2a8741d6 (patch) | |
tree | 51125f77aaa93b73953f7d3189c1e2a13a904490 /net/netlabel | |
parent | 3fd2f1b9d91284afb957ab9899a83279d0e09f29 (diff) | |
download | linux-fc01538f9fb75572c969ca9988176ffc2a8741d6.tar.gz linux-fc01538f9fb75572c969ca9988176ffc2a8741d6.tar.bz2 linux-fc01538f9fb75572c969ca9988176ffc2a8741d6.zip |
inet: simplify timewait refcounting
timewait sockets have a complex refcounting logic.
Once we realize it should be similar to established and
syn_recv sockets, we can use sk_nulls_del_node_init_rcu()
and remove inet_twsk_unhash()
In particular, deferred inet_twsk_put() added in commit
13475a30b66cd ("tcp: connect() race with timewait reuse")
looks unecessary : When removing a timewait socket from
ehash or bhash, caller must own a reference on the socket
anyway.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlabel')
0 files changed, 0 insertions, 0 deletions