inet: inet_twsk_deschedule factorization
authorEric Dumazet <edumazet@google.com>
Wed, 8 Jul 2015 21:28:30 +0000 (14:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jul 2015 22:12:20 +0000 (15:12 -0700)
commitdbe7faa4045ea83a37b691b12bb02a8f86c2d2e9
tree4c7b8918dbe2c4caacd120deffe2e8a8235d9561
parentfc01538f9fb75572c969ca9988176ffc2a8741d6
inet: inet_twsk_deschedule factorization

inet_twsk_deschedule() calls are followed by inet_twsk_put().

Only particular case is in inet_twsk_purge() but there is no point
to defer the inet_twsk_put() after re-enabling BH.

Lets rename inet_twsk_deschedule() to inet_twsk_deschedule_put()
and move the inet_twsk_put() inside.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_timewait_sock.h
net/ipv4/inet_hashtables.c
net/ipv4/inet_timewait_sock.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_minisocks.c
net/ipv6/inet6_hashtables.c
net/ipv6/tcp_ipv6.c
net/netfilter/xt_TPROXY.c