Re: 2.4.0-test: rmmod -a without effect

From: Keith Owens (kaos@ocs.com.au)
Date: Tue Nov 28 2000 - 23:20:07 EST


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/



This archive was generated by hypermail 2b29 : Thu Nov 30 2000 - 21:00:21 EST