git: kernel - Fix a rare nfsnode destruction race

看板DFBSD_commit作者時間14年前 (2011/05/17 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 6ab1269c4531652932a5ae384584e6375f204779 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Thu Apr 21 02:23:49 2011 -0700 kernel - Fix a rare nfsnode destruction race * Clear np->n_vnode atomically (w/ the token held) when removing a node from the hash table. The field was previously not being cleared at all which could race the nfsnhash lookup code despite the vnode interlock and check the lookup code was performing. * Remove unnecessary tokens around the remaining nfsnode freeing code in the reclaim path. Summary of changes: sys/vfs/nfs/nfs_node.c | 20 ++++++++++++++------ 1 files changed, 14 insertions(+), 6 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/6ab1269c4531652932a5ae384584e6375f204779 -- DragonFly BSD source repository
文章代碼(AID): #1DqRGZ97 (DFBSD_commit)