summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 85e1fa1..179b7f4 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -3988,7 +3988,8 @@ void
assert_vop_locked(struct vnode *vp, const char *str)
{
- if (!IGNORE_LOCK(vp) && VOP_ISLOCKED(vp) == 0)
+ if (!IGNORE_LOCK(vp) &&
+ (VOP_ISLOCKED(vp) == 0 || VOP_ISLOCKED(vp) == LK_EXCLOTHER))
vfs_badlock("is not locked but should be", str, vp);
}
OpenPOWER on IntegriCloud