summaryrefslogtreecommitdiff
path: root/sys/nfs
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2020-02-27 22:12:53 +0000
committerad <ad@NetBSD.org>2020-02-27 22:12:53 +0000
commitcf22c3769d9e9d230b41d2c992249104887c4e45 (patch)
treef83def01a01c54542cbfe1e9c5c6836be41e81ce /sys/nfs
parent27d142a037ca3dc596f4472e496a8af19007b844 (diff)
Tighten up the locking around vp->v_iflag a little more after the recent
split of vmobjlock & v_interlock.
Diffstat (limited to 'sys/nfs')
-rw-r--r--sys/nfs/nfs_vfsops.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c
index fdfe91833f4..40175f8bde6 100644
--- a/sys/nfs/nfs_vfsops.c
+++ b/sys/nfs/nfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $NetBSD: nfs_vfsops.c,v 1.238 2020/01/17 20:08:09 ad Exp $ */
+/* $NetBSD: nfs_vfsops.c,v 1.239 2020/02/27 22:12:54 ad Exp $ */
/*
* Copyright (c) 1989, 1993, 1995
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nfs_vfsops.c,v 1.238 2020/01/17 20:08:09 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nfs_vfsops.c,v 1.239 2020/02/27 22:12:54 ad Exp $");
#if defined(_KERNEL_OPT)
#include "opt_nfs.h"
@@ -963,7 +963,8 @@ nfs_sync_selector(void *cl, struct vnode *vp)
KASSERT(mutex_owned(vp->v_interlock));
- return !LIST_EMPTY(&vp->v_dirtyblkhd) || !UVM_OBJ_IS_CLEAN(&vp->v_uobj);
+ return !LIST_EMPTY(&vp->v_dirtyblkhd) ||
+ (vp->v_iflag & VI_ONWORKLST) != 0;
}
/*