Vrele ni_startdir in the experimental NFS server for the case
of NFSv2 getting an error return from VOP_MKNOD(). Without this patch, the server file system remains busy after an NFSv2 VOP_MKNOD() fails. MFC after: 2 weeks
This commit is contained in:
parent
61582b7c03
commit
bf9a6130d2
@ -765,10 +765,9 @@ nfsvno_createsub(struct nfsrv_descript *nd, struct nameidata *ndp,
|
||||
&ndp->ni_cnd, &nvap->na_vattr);
|
||||
vput(ndp->ni_dvp);
|
||||
nfsvno_relpathbuf(ndp);
|
||||
if (error) {
|
||||
vrele(ndp->ni_startdir);
|
||||
vrele(ndp->ni_startdir);
|
||||
if (error)
|
||||
return (error);
|
||||
}
|
||||
} else {
|
||||
vrele(ndp->ni_startdir);
|
||||
nfsvno_relpathbuf(ndp);
|
||||
|
Loading…
Reference in New Issue
Block a user