summaryrefslogtreecommitdiffstats
path: root/sys/nfs/nfs_subs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nfs/nfs_subs.c')
-rw-r--r--sys/nfs/nfs_subs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c
index c7e6917..18cb8a9 100644
--- a/sys/nfs/nfs_subs.c
+++ b/sys/nfs/nfs_subs.c
@@ -2139,6 +2139,8 @@ nfs_clearcommit(mp)
int s;
s = splbio();
+ mtx_assert(&Giant, MA_OWNED);
+ mtx_assert(&vm_mtx, MA_NOTOWNED);
loop:
for (vp = mp->mnt_vnodelist.lh_first; vp; vp = nvp) {
if (vp->v_mount != mp) /* Paranoia */
OpenPOWER on IntegriCloud