Re: git: kernel: Don't disturb about-to-be reaped zombies.

看板DFBSD_commit作者時間14年前 (2011/05/30 16:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/4 (看更多)
:Adding the process flag and using it is easy. But to make those processes :show up in the ps with P_REAPING set, you need to let sysctl_kern_proc() :call sysctl_out_proc(p) on them while holding p->p_lock, which eventually :breaks the assertion on kern_exit.c:901 (KKASSERT(p->p_lock == 0)). : :So, back to the original question in issue1996 (well, actually I asked that :in the second post, not the first one :), can we simply drop this assertion :(and let proc_remove_zombie() wait for p->p_lock to drop)? : :Best Regards, :YONETANI Tomokazu. Yah. I guess we do not need a flag as long as p_lock is waited for (again) just before the proc is removed from the list that allproc scans. Any existing p_lock waiting loops should be left where they are because they are protecting against a different case (incoming signals) which is interlocked against the process's state changing to SZOMB. -Matt Matthew Dillon <dillon@backplane.com>
文章代碼(AID): #1Duqx2QG (DFBSD_commit)
文章代碼(AID): #1Duqx2QG (DFBSD_commit)