diff options
| author | Eric Dumazet <[email protected]> | 2015-07-08 21:28:29 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-07-09 22:12:20 +0000 |
| commit | fc01538f9fb75572c969ca9988176ffc2a8741d6 (patch) | |
| tree | 51125f77aaa93b73953f7d3189c1e2a13a904490 /net/ipv6/tcp_ipv6.c | |
| parent | inet: remove BUG_ON() in twsk_destructor() (diff) | |
| download | kernel-fc01538f9fb75572c969ca9988176ffc2a8741d6.tar.gz kernel-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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions
