]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
module: don't use stop_machine for waiting rmmod
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 23 Jul 2008 00:24:25 +0000 (19:24 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 22 Jul 2008 09:24:25 +0000 (19:24 +1000)
commitda39ba5e1d65e997a98f6eb93ba6e6eb505f6e3c
tree7c47c0481a7e8b9a9a13a9ce6ea8f11ed145b546
parent93ded9b8fd42abe2c3607097963d8de6ad9117eb
module: don't use stop_machine for waiting rmmod

rmmod has a little-used "-w" option, meaning that instead of failing if the
module is in use, it should block until the module becomes unused.

In this case, we don't need to use stop_machine: Max Krasnyansky
indicated that would be useful for SystemTap which loads/unloads new
modules frequently.

Cc: Max Krasnyansky <maxk@qualcomm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c