DragonFly BSD
DragonFly commits List (threaded) for 2009-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: git: kernel - misc MPSAFe work


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 20 Dec 2009 14:59:32 -0800 (PST)

:I wonder if the change below is really neccessary, as LIST_INSERT_HEAD is
:not MP-safe and
:the whole function kern_jail must be called with mp_lock hold. It just made
:me think that you missed
:to make the list insert race free until I saw that the function is always
:called with mp_lock held.

    Yah, you're right.  There's no need to use atomic ops on prisoncount.
    I haven't made the jail-related system calls MPSAFE yet anyway.

						-Matt



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]