summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/kern/vfs_vnops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 18dc3ff25606..1e9d3bbda9d6 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -929,6 +929,8 @@ vn_start_write(vp, mpp, flags)
struct mount *mp;
int error;
+ GIANT_REQUIRED;
+
/*
* If a vnode is provided, get and return the mount point that
* to which it will write.
@@ -1007,6 +1009,8 @@ vn_finished_write(mp)
struct mount *mp;
{
+ GIANT_REQUIRED;
+
if (mp == NULL)
return;
mp->mnt_writeopcount--;