OpenVZ Forum


Home » Mailing lists » Devel » [patch 00/20] [Network namespace] Introduction
Re: [patch 03/20] [Network namespace] Remove useless code [message #16957 is a reply to message #16895] Mon, 11 December 2006 15:08 Go to previous messageGo to previous message
Cedric Le Goater is currently offline  Cedric Le Goater
Messages: 443
Registered: February 2006
Senior Member
dlezcano@fr.ibm.com wrote:
> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
> 
> ---
> 
>  net/core/net_namespace.c |    5 -----
>  1 files changed, 5 deletions(-)
> 
> Index: 2.6.19-rc6-mm2/net/core/net_namespace.c
> ===================================================================
> --- 2.6.19-rc6-mm2.orig/net/core/net_namespace.c
> +++ 2.6.19-rc6-mm2/net/core/net_namespace.c
> @@ -128,11 +128,6 @@ void free_net_ns(struct kref *kref)
>  	/* taking lock after atomic_dec_and_test is racy */
>  	spin_lock_irqsave(&net_ns_list_lock, flags);
>  	ns = container_of(kref, struct net_namespace, kref);
> -	if (atomic_read(&ns->kref.refcount) ||
> -	    list_empty(&ns->sibling_list)) {
> -		spin_unlock_irqrestore(&net_ns_list_lock, flags);
> -		return;
> -	}

why ? 


>  	list_del_init(&ns->sibling_list);
>  	spin_unlock_irqrestore(&net_ns_list_lock, flags);
>  	put_net_ns(ns->parent);
> 

_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] ncpfs: Use struct pid to track the userspace watchdog process.
Next Topic: Re: [patch 06/20] [Network namespace] Move the nsproxy NULL affection
Goto Forum:
  


Current Time: Thu Oct 09 15:15:53 GMT 2025

Total time taken to generate the page: 0.08301 seconds