Re: [patch] POSIX advisory mode lock panic fix by Dfly

看板DFBSD_submit作者時間21年前 (2004/04/22 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/17 (看更多)
:> Also, the error checking should not be integrated into chgposixlockcnt(). :> That is, the resource counter increment/decrement should be unconditional :> based on the allocation and freeing of the related structures. The :> resource limit should be checked in the main switch, with a special case :> in the case of a split. : :I really prefer checking the resource limit in one place, so what do you :think of moving the resource limit check into lf_cnt_increment? Reminds me :that the change to kern_prot.c is not correct :( : :Joerg No, please. The incrementing and decrementing should be based on the structural allocation and freeing. The resource check should only be done in the high level system call, as per my pseudo code. They really should be treated separately. -Matt Matthew Dillon <dillon@backplane.com>
文章代碼(AID): #10Xowg00 (DFBSD_submit)
討論串 (同標題文章)
文章代碼(AID): #10Xowg00 (DFBSD_submit)