]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC: r339999
authorrmacklem <rmacklem@FreeBSD.org>
Sun, 18 Nov 2018 22:59:54 +0000 (22:59 +0000)
committerrmacklem <rmacklem@FreeBSD.org>
Sun, 18 Nov 2018 22:59:54 +0000 (22:59 +0000)
commit5ab2447338238e710adea9d6052f1e1f478ef4ef
treef5cbe688f2d73391c517119e6c19a03bf6e3e81e
parentaa47212eef5315acd868a356cf752ede07082b33
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
sys/fs/nfsclient/nfs_clvnops.c