Re: git: kernel - misc MPSAFe work

看板DFBSD_commit作者時間16年前 (2009/12/21 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
: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
文章代碼(AID): #1BBhFvla (DFBSD_commit)
文章代碼(AID): #1BBhFvla (DFBSD_commit)