Re: pre-patch-2.1.107 breaks kmod

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 25 Jun 1998 21:10:06 +0100 (BST)


> > One of the insmod requests will fail. All that matters is that the registering
> > in module namespace is atomic, not that we load a module twice and one bales
>
> Have you actually tried it?

Yes

> The problem is that without the lock, it _isn't_ atomic.

Im only locking the code that checks the name is present. So I get two
insmods fire up, both try to register "blah" in the module table, one
bombs with an error. That avoids the problems with the fact module
loading is fundamentally recursive.

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu