Won't work. module->live is what Rusty uses to indicate that the module
is in the process of unloading, which is when we *do* want the attempt to
module_get() to fail. I think the process out to basically be:
load module into mem
set module->live = 1
call module_init
export module syms
done loading module
on module exit:
unexport module syms
set module->live 0
call module_exit
free module memory
done unloading.
That *should* solve all the races Rusty is trying to solve without the
problems we've had so far, but this is only after a few minutes of
thinking....
-- Doug Ledford <dledford@redhat.com> 919-754-3700 x44233 Red Hat, Inc. 1801 Varsity Dr. Raleigh, NC 27606 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/