public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Cannot unload some modules
@ 2001-09-27 13:54 RaúlNúñez de Arenas Coronado
  2001-10-01  2:41 ` Keith Owens
  0 siblings, 1 reply; 2+ messages in thread
From: RaúlNúñez de Arenas Coronado @ 2001-09-27 13:54 UTC (permalink / raw)
  To: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 777 bytes --]

    Hello all :))

    I have a problem with some modules, specially with 'dummy.o' (the
dummy network device driver) and some USB ones: they aren't unloaded,
even when unused and autocleanable, issuing two or more 'rmmod -a'
commands.

    This leaded me to think that the 'cleanup()' functions of those
modules did hang, but the modules are correctly unloaded if called by
their name in rmmod, but no if 'rmmod -a' is used :((

    I've took a look at 'module.c' and I'm clueless. I've checked the
modules and are loaded with 'modprobe -k', are marked as
autocleanable and marked as unused, too.

    BTW, I've noticed too that the serial module sometimes has a
negative value in its 'use' count :!!

    Can anybody tell me what could be happening?. Thanks a lot.

    Raúl

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Cannot unload some modules
  2001-09-27 13:54 Cannot unload some modules RaúlNúñez de Arenas Coronado
@ 2001-10-01  2:41 ` Keith Owens
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Owens @ 2001-10-01  2:41 UTC (permalink / raw)
  To: RaúlNúñez de Arenas Coronado; +Cc: linux-kernel

On Thu, 27 Sep 2001 15:54:19 +0200, 
=?ISO-8859-1?Q?Ra=FAl?= =?ISO-8859-1?Q?N=FA=F1ez?= de Arenas Coronado <dervishd@jazzfree.com> wrote:
>    I have a problem with some modules, specially with 'dummy.o' (the
>dummy network device driver) and some USB ones: they aren't unloaded,
>even when unused and autocleanable, issuing two or more 'rmmod -a'
>commands.

Auto unload ignores modules that have not been used, to avoid a race
condition.  Either use the module or don't auto load them in the first
place.

>    BTW, I've noticed too that the serial module sometimes has a
>negative value in its 'use' count :!!

That could be the serial driver saying that it handles its own unload
count but is more likely to be a bug in the code.  Report it to the
serial driver maintainer.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-01  2:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-27 13:54 Cannot unload some modules RaúlNúñez de Arenas Coronado
2001-10-01  2:41 ` Keith Owens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox