From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Denis V. Lunev" Subject: Re: [PATCH 2/3] tcp: Like icmp use register_pernet_subsys Date: Fri, 20 Feb 2009 18:57:23 +0300 Message-ID: <1235145443.9761.152.camel@iris.sw.ru> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Linux Containers , netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, David Miller , Alexey Dobriyan To: "Eric W. Biederman" Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org List-Id: netdev.vger.kernel.org Acked-by: Denis V. Lunev On Fri, 2009-02-20 at 07:53 -0800, Eric W. Biederman wrote: > To remove the possibility of packets flying around when network > devices are being cleaned up use reisger_pernet_subsys instead of > register_pernet_device. > > Signed-off-by: Eric W. Biederman > --- > net/ipv4/tcp_ipv4.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c > index f6b962f..a738120 100644 > --- a/net/ipv4/tcp_ipv4.c > +++ b/net/ipv4/tcp_ipv4.c > @@ -2443,7 +2443,7 @@ static struct pernet_operations __net_initdata tcp_sk_ops = { > void __init tcp_v4_init(void) > { > inet_hashinfo_init(&tcp_hashinfo); > - if (register_pernet_device(&tcp_sk_ops)) > + if (register_pernet_subsys(&tcp_sk_ops)) > panic("Failed to create the TCP control socket.\n"); > } >