Re: [PATCH] fix rmmod sbp2 hang in 2.6.7

From: Ben Collins (bcollins_at_debian.org)
Date: 07/14/04

  • Next message: Mikael Pettersson: "[PATCH][2.6.8-rc1-mm1] arch/i386/kernel/smp.c gcc341 inlining fix"
    Date:	Wed, 14 Jul 2004 07:33:04 -0400
    To: Hugang <hugang@soulinfo.com>, linux-kernel@vger.kernel.org
    
    

    On Wed, Jul 14, 2004 at 10:24:17AM +0100, Russell King wrote:
    > On Wed, Jul 14, 2004 at 05:11:07PM +0800, Hugang wrote:
    > > On Wed, 14 Jul 2004 16:13:57 +0800
    > > Hugang <hugang@soulinfo.com> wrote:
    > > | On Wed, 14 Jul 2004 11:48:54 +0800
    > > | Hugang <hugang@soulinfo.com> wrote:
    > > |
    > > ....
    > > | Sorry, the above patch, can't fix rmmod sbp2 complete,I still got hang when
    > > | rmmod sbp2 in my PowerBook G4 sometimes.
    > > |
    > >
    > > This new patch can complete fix the bug. That's really hack. Any comment are
    > > welcome.
    >
    > This down+up prevents drivers from being unloaded until there are no
    > references to their struct device_driver. By removing this, you open
    > the very real possibility for an oops to occur.
    >
    > If you're waiting inside that function for the last reference to be
    > dropped, the real question is why you still have references to it.

    Seems like every 2 months or so I have to revisit the sbp2 module to see
    where the scsi layer has changed (or the driver model) so that I can get
    all the reference counting to equal out properly. Guess it's been two
    months again :)

    -- 
    Debian     - http://www.debian.org/
    Linux 1394 - http://www.linux1394.org/
    Subversion - http://subversion.tigris.org/
    WatchGuard - http://www.watchguard.com/
    -
    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/
    

  • Next message: Mikael Pettersson: "[PATCH][2.6.8-rc1-mm1] arch/i386/kernel/smp.c gcc341 inlining fix"

    Relevant Pages

    • Re: [PATCH] fix rmmod sbp2 hang in 2.6.7
      ... This down+up prevents drivers from being unloaded until there are no ... the real question is why you still have references to it. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [2.6.25-rc] pcmcia section mismatches
      ... The variable pccard_sysfs_interface references ... If the reference is valid then annotate the ... # Infrared-port device drivers ... # PCI IDE chipsets support ...
      (Linux-Kernel)
    • RE: [PATCH 05/15] ia64: remove use of asm/segment.h
      ... >There are still a few drivers that include asm/segment.h, ... The sequence should be to send patches to get rid of ... references and you don't want to get into a game of whack-a-mole, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • build #349 issue for v2.6.25-rc1 : Section mismatch from arch_register_cpu() to .cpuinit.text:re
      ... The function arch_register_cpureferences ... annotation or the annotation of register_cpu is wrong. ... # CAN Device Drivers ... # PCI IDE chipsets support ...
      (Linux-Kernel)
    • Re: new pc
      ... The image, copied from the old PC to the new one, will contain drivers and references to hardware that no longer exists on the new PC and will be missing drivers and references to new hardware on the new PC. ... I also have an awful lot of downloaded software that I would need to re-install, as well as setting up my web connection again. ...
      (microsoft.public.windows.vista.general)