From: Stephen Hemminger <shemminger@osdl.org>
To: Rodrigo Ventura <yoda@isr.ist.utl.pt>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: kernel hangs when trying to remove a bridge
Date: Mon, 31 Jul 2006 11:22:20 -0700 [thread overview]
Message-ID: <20060731112220.0c14d1bc@localhost.localdomain> (raw)
In-Reply-To: <200607291642.05046.yoda@isr.ist.utl.pt>
On Sat, 29 Jul 2006 16:42:04 +0100
Rodrigo Ventura <yoda@isr.ist.utl.pt> wrote:
>
> I'm using kernel 2.6.16 (-gentoo-r13 actually). A bridge iface br0 is setup
> using eth1 and eth0.1 (VLAN) as slaves. To bring br0, what I do is to remove
> the slaves from the bridge first, "ip link set dev br0 down" next, followed
> by the brctl command to remove the bridge. What happens is that it seems it
> tryes to destroy the bridge iface, and then hangs, with dmesg complaining,
> periodically, about once a second, something like:
>
> unregister_netdevice: waiting for br0 to become free. Usage count = 1
> unregister_netdevice: waiting for br0 to become free. Usage count = 1
> unregister_netdevice: waiting for br0 to become free. Usage count = 1
> ...
>
> I say it partially hangs because commands like ifconfig hang (ps state=Disk
> busy)...
> To reboot the machine, a HARD reset is required, since, the shutdown process
> hangs...
>
Some broken protocol in the kernel, incremented a refcount but forgot
to cleanup when notified on device removal.
There was a bug in the VLAN code that did that, not sure which version
it was fixed in.
Do you have IPV6 installed (as a module)?
In some kernel versions, IPV6 has a problem with device ref counting, and
leaves a dangling reference.
--
next prev parent reply other threads:[~2006-07-31 18:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-29 15:42 Rodrigo Ventura
2006-07-31 18:22 ` Stephen Hemminger [this message]
2006-08-02 11:30 ` Rodrigo Ventura
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060731112220.0c14d1bc@localhost.localdomain \
--to=shemminger@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=yoda@isr.ist.utl.pt \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome