Add a check for VI_DOOMED at the beginning of nfscl_request()

so that it won't try and use vp->v_mount to do an RPC during
a forced dismount. There needs to be at least one more kernel
commit, plus a change to the umount(8) command before forced
dismounts will work for the experimental NFS client.

MFC after:	2 weeks
This commit is contained in:
Rick Macklem 2011-04-20 23:25:18 +00:00
parent fb12416c9f
commit 69bcf84509
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220906

View File

@ -819,6 +819,8 @@ nfscl_request(struct nfsrv_descript *nd, struct vnode *vp, NFSPROC_T *p,
int ret, vers;
struct nfsmount *nmp;
if ((vp->v_iflag & VI_DOOMED) != 0)
return (EPERM);
nmp = VFSTONFS(vp->v_mount);
if (nd->nd_flag & ND_NFSV4)
vers = NFS_VER4;