]> git.baikalelectronics.ru Git - kernel.git/commit
inet: remove rcu protection on tw_net
authorEric Dumazet <eric.dumazet@gmail.com>
Wed, 14 Dec 2011 04:58:33 +0000 (04:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Dec 2011 18:34:55 +0000 (13:34 -0500)
commit2ed9bd33f69dfa131796c2885e2b96ecd6ad3cbc
treee895be7b8d2985e0123ad48500005d2a86eac101
parentf6b61bd5efcfaaadcb1251fe6991b486420327ba
inet: remove rcu protection on tw_net

commit 56b8c2ef1ef204 (net: Batch inet_twsk_purge) added rcu protection
on tw_net for no obvious reason.

struct net are refcounted anyway since timewait sockets escape from rcu
protected sections. tw_net stay valid for the whole timwait lifetime.

This also removes a lot of sparse errors.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_timewait_sock.h