* 2.4.0-test: rmmod -a without effect
@ 2000-11-29 0:37 Kurt Garloff
2000-11-29 4:20 ` Keith Owens
0 siblings, 1 reply; 2+ messages in thread
From: Kurt Garloff @ 2000-11-29 0:37 UTC (permalink / raw)
To: Linux kernel list
Hi,
this is a 2.4.0-test11 system;
rmmod -a (modutils-2.3.21) fails to unload unused autocleanable modules:
modprobe -r behaves the same, BTW
root@cantaloupe:~ > lsmod
Module Size Used by
ppp_deflate 44736 0 (autoclean) (unused)
ppp_generic 25728 0 (autoclean) [ppp_deflate]
root@cantaloupe:~ > rmmod -a
root@cantaloupe:~ > lsmod
Module Size Used by
ppp_deflate 44736 0 (autoclean) (unused)
ppp_generic 25728 0 (autoclean) [ppp_deflate]
As the binary does just a syscall delete_module(0), I guess it's the
kernel's fault. Same behaviour with 2.4.0-test9 and -test11-ac2.
Is this known and to be expected?
Regards,
--
Kurt Garloff <garloff@suse.de> Eindhoven, NL
GPG key: See mail header, key servers Linux kernel development
SuSE GmbH, Nuernberg, FRG SCSI, Security
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.4.0-test: rmmod -a without effect
2000-11-29 0:37 2.4.0-test: rmmod -a without effect Kurt Garloff
@ 2000-11-29 4:20 ` Keith Owens
0 siblings, 0 replies; 2+ messages in thread
From: Keith Owens @ 2000-11-29 4:20 UTC (permalink / raw)
To: Kurt Garloff; +Cc: Linux kernel list
On Wed, 29 Nov 2000 01:37:22 +0100,
Kurt Garloff <garloff@suse.de> wrote:
>this is a 2.4.0-test11 system;
>rmmod -a (modutils-2.3.21) fails to unload unused autocleanable modules:
Designed behaviour. sys_delete_module only removes autoclean modules
that have been used at least once, either they have been used or some
other module has a reference to them. Otherwise you get nasty races
like this
cpu 0 cpu 1
request_module(foo)
modprobe -k foo
insmod -k foo
foo is loaded, unused
kernel sees foo has loaded
rmmod -a
kernel uses foo
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-11-29 4:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-29 0:37 2.4.0-test: rmmod -a without effect Kurt Garloff
2000-11-29 4:20 ` Keith Owens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox