git: kernel: Add a final p_lock wait loop before kfree'ing the p

看板DFBSD_commit作者時間14年前 (2011/06/06 13:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 49aa3df0ca3e226c0a0d7097863a2426ee6fd534 Author: YONETANI Tomokazu <y0netan1@dragonflybsd.org> Date: Mon Jun 6 14:09:04 2011 +0900 kernel: Add a final p_lock wait loop before kfree'ing the process Since p_lock can be acquired during the process removal, there needs 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. Requested-by: dillon@ Dragonfly-bug: <http://bugs.dragonflybsd.org/issue1996> Summary of changes: sys/kern/kern_exit.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/49aa3df0ca3e226c0a0d7097863a2426ee6fd534 -- DragonFly BSD source repository
文章代碼(AID): #1Dx6PPBZ (DFBSD_commit)