mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 08:22:44 +00:00
Slight re-ordering of the creation of a vmio object to fix a condition
that can cause NFS I/O failures.
This commit is contained in:
parent
7e15fd2757
commit
e0a4d029a5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7969
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user