Re: git: kernel: Remove an extra p_lock == 0 check

看板DFBSD_commit作者時間14年前 (2011/06/06 15:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
On Thu, Jun 02, 2011 at 01:37:33PM -0700, Matthew Dillon wrote: > I think we need one more addition. Since p_lock can be acquired during > the process removal there need to be a final wait loop after the proc > has been removed from all queues, just before the kfree(p). It will be > a very rare case but it definitely can still occur if e.g. the SYSCTL_OUT > code blocks on a VM fault or something like that. > > (untested patch below) Hi, I've committed that patch after having tested for a few days, which is long enough to trigger the original panic. The added wait loop has never entered during the test, but even if it does in the longer run, the code shouldn't cause any problem, either. Best Regards, YONETANI Tomokazu.
文章代碼(AID): #1Dx7isyf (DFBSD_commit)
文章代碼(AID): #1Dx7isyf (DFBSD_commit)