Fix an omission of a line from the previous commit to this file. The

problem appeared to be an NFS hang.
This commit is contained in:
John Dyson 1998-02-05 16:40:57 +00:00
parent a4f897aa96
commit 857fe6801a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=33121
2 changed files with 6 additions and 4 deletions

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95
* $Id: nfs_vfsops.c,v 1.51 1997/10/28 15:59:12 bde Exp $
* $Id: nfs_vfsops.c,v 1.52 1997/11/12 05:42:21 julian Exp $
*/
#include <sys/param.h>
@ -956,7 +956,8 @@ nfs_sync(mp, waitfor, cred, p)
*/
if (vp->v_mount != mp)
goto loop;
if (VOP_ISLOCKED(vp) || vp->v_dirtyblkhd.lh_first == NULL)
if (VOP_ISLOCKED(vp) || vp->v_dirtyblkhd.lh_first == NULL ||
waitfor == MNT_LAZY)
continue;
if (vget(vp, LK_EXCLUSIVE, p))
goto loop;

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* @(#)nfs_vfsops.c 8.12 (Berkeley) 5/20/95
* $Id: nfs_vfsops.c,v 1.51 1997/10/28 15:59:12 bde Exp $
* $Id: nfs_vfsops.c,v 1.52 1997/11/12 05:42:21 julian Exp $
*/
#include <sys/param.h>
@ -956,7 +956,8 @@ nfs_sync(mp, waitfor, cred, p)
*/
if (vp->v_mount != mp)
goto loop;
if (VOP_ISLOCKED(vp) || vp->v_dirtyblkhd.lh_first == NULL)
if (VOP_ISLOCKED(vp) || vp->v_dirtyblkhd.lh_first == NULL ||
waitfor == MNT_LAZY)
continue;
if (vget(vp, LK_EXCLUSIVE, p))
goto loop;