rework try_then_request_module to do less in non-modular kernels
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 8 Jul 2008 17:00:18 +0000 (19:00 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 22 Jul 2008 09:24:29 +0000 (19:24 +1000)
commitdf648c9fbebb4de50e7a6e76cc253c7cb0421f9b
tree909e31ce61020e65b45f2c0caef3492b9a376b4a
parenta81792f668c20540c336af4242ba1400763eb14f
rework try_then_request_module to do less in non-modular kernels

This reworks try_then_request_module to only invoke the "lookup"
function "x" once when the kernel is not modular.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/kmod.h