]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r339999
authorrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 18 Nov 2018 23:48:15 +0000 (23:48 +0000)
committerrmacklem <rmacklem@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sun, 18 Nov 2018 23:48:15 +0000 (23:48 +0000)
commit6f45b2154797cf353a3d2b0eae3f668a676287d8
treed60ed46b9942509a45149bd10d421c1af676dadc
parent041d97acf71b3c7e5b1f88f94ad366430b761eb2
MFC: r339999
Fix NFS client vnode locking to avoid a crash during forced dismount.

A crash was reported where the crash occurred in nfs_advlock() when the
NFS_ISV4(vp) macro was being executed. This was caused by the vnode
being VI_DOOMED due to a forced dismount in progress.
This patch fixes the problem by locking the vnode before executing the
NFS_ISV4() macro.

PR: 232673

git-svn-id: svn://svn.freebsd.org/base/stable/10@340589 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/fs/nfsclient/nfs_clvnops.c