Subject: Re: network device reference leak with net-next

From: Stephen Hemminger <[email-masked]>
Date: Mon, 15 Nov 2010 11:10:24 -0800

On Mon, 15 Nov 2010 20:04:00 +0100
Eric Dumazet <[email-masked]> wrote:

> Le lundi 15 novembre 2010 à 10:56 -0800, Stephen Hemminger a écrit :
> > This is a new regression (doesn't exist with 2.6.36)
> > 
> > If I shutdown KVM instance with Virt manager, the virtual
> > interfaces in the bridge aren't getting cleaned up because
> > of leftover reference count.
> > 
> > 
> > [ 9781.050474] unregister_netdevice: waiting for vnet1 to become free. Usage count = 1
> > [ 9785.143400] virbr4: port 3(vnet6) entering forwarding state
> > [ 9785.177194] virbr4: port 3(vnet6) entering disabled state
> > [ 9785.201129] device vnet6 left promiscuous mode
> > [ 9785.201135] virbr4: port 3(vnet6) entering disabled state
> > [ 9791.286950] unregister_netdevice: waiting for vnet1 to become free. Usage count = 1
> > [ 9795.461526] unregister_netdevice: waiting for vnet6 to become free. Usage count = 1
> > [ 9801.523398] unregister_netdevice: waiting for vnet1 to become free. Usage count = 1
> > --
> 
> Is the refcount stay forever to 1, or eventually reaches 0 ?
> 
> 
> 

Stays 1 for as long as I waited about 10 minutes

--