Re: Module Refcount & Stuff mini-FAQ

From: Rusty Russell (rusty@rustcorp.com.au)
Date: Mon Nov 25 2002 - 17:43:06 EST


In message <20021125033906.B1549@almesberger.net> you write:
> Rusty Russell wrote:
> > At the cost of exposing the module to initialization races.
>
> Hmm, what races are there that don't correspond to a bug in
> some module ?

Ah, see other thread (weren't you at the kernel summit?). There's
currently no way to abort if you've exposed interfaces and then
something fails ("don't do that" is great except noone knows that, and
it's not always possible or nice)

The old module code used to just ignore it. My code tries to catch it
and leaves the module stuck (except if !CONFIG_MODULE_UNLOAD, in which
case it can't really detect it).

Since we have a way of isolating modules for the symmetric race on
exit, it makes sense to use it on entry (of course, try_inc_mod_count
would have to keep violating the rule during the transition).

Hope that helps,
Rusty.

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
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/



This archive was generated by hypermail 2b29 : Sat Nov 30 2002 - 22:00:12 EST