public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Matthias-Christian Ott <matthias.christian@tiscali.de>
To: Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: PROBLEM: 2.6.11-rc2 hangs on bridge shutdown (br0)
Date: Mon, 31 Jan 2005 18:40:51 +0100	[thread overview]
Message-ID: <41FE6DA3.80004@tiscali.de> (raw)
In-Reply-To: <20050131162201.GA1000@stilzchen.informatik.tu-chemnitz.de>

Mirko Parthey wrote:

>My Debian machine hangs during shutdown, with messages like this:
>unregister_netdevice: waiting for br0 to become free. Usage count = 1
>
>I narrowed it down to the command
>  # brctl delbr br0
>which does not return in the circumstances shown below.
>
>The problem is reproducible with both 2.6.11-rc2 from kernel.org and the
>Debian kernel-image-2.6.10-1-686.
>
>My .config is taken from the above mentioned Debian kernel, adapted to
>2.6.11-rc2 and the processor type set to Pentium Classic. (I can email
>the .config on request).
>
>How to reproduce the problem (I tried this on a Pentium 4 machine):
>
>boot: linux init=/bin/bash
>[...booting...]
># mount proc -t proc /proc
># ifconfig lo 127.0.0.1
># brctl addbr br0
># modprobe e100           # also reproducible with 3c5x9
># brctl addif br0 eth0
># ifconfig br0 192.168.1.1
># ifconfig eth0 up
># ifconfig lo down
># lsmod | grep bridge
>bridge                 48888  0
># brctl delif br0 eth0
># ifconfig br0 down
># brctl delbr br0
>unregister_netdevice: waiting for br0 to become free. Usage count = 1
>unregister_netdevice: waiting for br0 to become free. Usage count = 1
>[...this message again and again, but no progress...]
>
>I'm also surprised that the reference count for the bridge module is
>zero, even when it is in use.
>
>Please let me know if you need any further information,
>and please Cc me on replies (I am not subscribed to linux-kernel).
>
>Thanks,
>Mirko
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at  http://www.tux.org/lkml/
>
>  
>
Hi!
I have a similar problem with my wlan modul, this patch should fix it (I 
disables the check function [untested]):

diff -Nru linux-2.6.11-rc2/net/core/dev.c 
linux-2.6.11-rc2-ott/net/core/dev.c
--- linux-2.6.11-rc2/net/core/dev.c    2005-01-26 22:27:31.000000000 +0100
+++ linux-2.6.11-rc2-ott/net/core/dev.c    2005-01-31 00:47:34.000000000 
+0100
@@ -2974,7 +2974,7 @@
             netdev_unregister_sysfs(dev);
             dev->reg_state = NETREG_UNREGISTERED;
 
-            netdev_wait_allrefs(dev);
+            //netdev_wait_allrefs(dev);
 
             /* paranoia */
             BUG_ON(atomic_read(&dev->refcnt));

Matthias-Christian Ott


  reply	other threads:[~2005-01-31 16:41 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-31 16:22 PROBLEM: 2.6.11-rc2 hangs on bridge shutdown (br0) Mirko Parthey
2005-01-31 17:40 ` Matthias-Christian Ott [this message]
2005-02-01 17:36 ` Mirko Parthey
2005-02-02 16:08   ` Matthias-Christian Ott
2005-02-05 12:48     ` Matthias-Christian Ott
2005-02-05  5:24 ` Herbert Xu
2005-02-05  5:38   ` David S. Miller
2005-02-05  6:11     ` Herbert Xu
2005-02-05  6:13       ` David S. Miller
2005-02-05  6:46         ` Herbert Xu
2005-02-05 10:45           ` Herbert Xu
2005-02-06 11:41             ` Herbert Xu
2005-02-06 12:30               ` YOSHIFUJI Hideaki / 吉藤英明
2005-02-06 21:01                 ` Herbert Xu
2005-02-05 10:50           ` YOSHIFUJI Hideaki / 吉藤英明
2005-02-05 18:32             ` Herbert Xu
2005-02-06  4:02             ` David S. Miller
2005-02-06  5:01               ` YOSHIFUJI Hideaki / 吉藤英明
2005-02-06  4:10           ` David S. Miller
2005-02-06  4:37             ` YOSHIFUJI Hideaki / 吉藤英明
2005-02-06  5:04               ` David S. Miller
2005-02-06  5:31                 ` YOSHIFUJI Hideaki / 吉藤英明
2005-02-06  5:50                   ` YOSHIFUJI Hideaki / 吉藤英明
2005-02-06  7:00                     ` Herbert Xu
2005-02-06  6:53                   ` Herbert Xu
2005-02-06  6:52                 ` Herbert Xu
2005-02-06  6:51             ` Herbert Xu
2005-02-08  1:29               ` [IPSEC] Move dst->child loop from dst_ifdown to xfrm_dst_ifdown Herbert Xu
2005-02-08  1:31                 ` Herbert Xu
2005-02-15 22:53                   ` David S. Miller
2005-02-05 11:14       ` PROBLEM: 2.6.11-rc2 hangs on bridge shutdown (br0) Andre Tomt
2005-02-05 11:39         ` YOSHIFUJI Hideaki / 吉藤英明
     [not found]           ` <4204B27F.5040202@tomt.net>
2005-02-05 11:55             ` YOSHIFUJI Hideaki / 吉藤英明
2005-02-05 18:33           ` Herbert Xu
2005-02-06 10:55       ` Andre Tomt
2005-02-06 11:28         ` YOSHIFUJI Hideaki / 吉藤英明

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=41FE6DA3.80004@tiscali.de \
    --to=matthias.christian@tiscali.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mirko.parthey@informatik.tu-chemnitz.de \
    /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