summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_vnops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r--sys/kern/vfs_vnops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 37204f319dfb..cd5e6697947d 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -850,7 +850,7 @@ vn_poll(fp, events, active_cred, td)
struct vnode *vp;
int error;
- GIANT_REQUIRED;
+ mtx_lock(&Giant);
vp = fp->f_vnode;
#ifdef MAC
@@ -861,6 +861,7 @@ vn_poll(fp, events, active_cred, td)
#endif
error = VOP_POLL(vp, events, fp->f_cred, td);
+ mtx_unlock(&Giant);
return (error);
}