diff options
author | dyson <dyson@FreeBSD.org> | 1995-04-21 02:58:49 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1995-04-21 02:58:49 +0000 |
commit | 20f29bf525e7a1f8faa551d40724c677f6d73333 (patch) | |
tree | 84fcd9439414634bfef41324ce3c80a0b9b34db6 /sys/nfsserver | |
parent | 62a68b5f4e919793a339e83f6926375c7c31ba4e (diff) | |
download | FreeBSD-src-20f29bf525e7a1f8faa551d40724c677f6d73333.zip FreeBSD-src-20f29bf525e7a1f8faa551d40724c677f6d73333.tar.gz |
Slight re-ordering of the creation of a vmio object to fix a condition
that can cause NFS I/O failures.
Diffstat (limited to 'sys/nfsserver')
-rw-r--r-- | sys/nfsserver/nfs_srvsubs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/nfsserver/nfs_srvsubs.c b/sys/nfsserver/nfs_srvsubs.c index 03b0b03..1497a82 100644 --- a/sys/nfsserver/nfs_srvsubs.c +++ b/sys/nfsserver/nfs_srvsubs.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)nfs_subs.c 8.3 (Berkeley) 1/4/94 - * $Id: nfs_subs.c,v 1.11 1995/02/15 04:21:32 phk Exp $ + * $Id: nfs_subs.c,v 1.12 1995/03/16 18:15:39 bde Exp $ */ /* @@ -1122,9 +1122,11 @@ nfsrv_fhtovp(fhp, lockflag, vpp, cred, slp, nam, rdonlyp) *rdonlyp = 1; else *rdonlyp = 0; + + nfsrv_vmio(*vpp); + if (!lockflag) VOP_UNLOCK(*vpp); - nfsrv_vmio(*vpp); return (0); } |