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)
commitf943cbe6fb71d1389dd8684b9b4181e49f8e870c
treee895be7b8d2985e0123ad48500005d2a86eac101
parente6560d4dfe62ddf6010fdf4a417b1b3bdcbf4fd3
inet: remove rcu protection on tw_net

commit b099ce2602d806 (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