Re: pre-patch-2.1.107 breaks kmod

H. Peter Anvin (hpa@transmeta.com)
25 Jun 1998 00:21:21 GMT


Followup to: <Pine.LNX.3.95.980624160026.465B-100000@penguin.transmeta.com>
By author: Linus Torvalds <torvalds@transmeta.com>
In newsgroup: linux.dev.kernel
>
> The patch does fix a real problem, though. Some kind of re-entrancy block
> is needed to make sure that there aren't two copies of "insmod" trying to
> insert the same module at the same time. It is possible that this
> re-entrancy block needs to be done by insmod itself, rather than the
> kernel.
>
> Linus
>

This is probably the way it should be done. I suggest insmod use
flock() on the module as synchronization.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

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