aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/freebsd/zfs/zfs_ctldir.c
diff options
context:
space:
mode:
authorMateusz Guzik <[email protected]>2022-09-20 02:17:27 +0200
committerGitHub <[email protected]>2022-09-19 17:17:27 -0700
commit9a671fe7ecbc5f6ca07d96869207720a37b088e4 (patch)
treef76707312c90d914ed770570716580320bd81023 /module/os/freebsd/zfs/zfs_ctldir.c
parent48cf170d5a9f6610db0f576238e054e727239e82 (diff)
FreeBSD: stop passing LK_INTERLOCK to VOP_LOCK
There is an ongoing effort to eliminate this feature. Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Mateusz Guzik <[email protected]> Closes #13908
Diffstat (limited to 'module/os/freebsd/zfs/zfs_ctldir.c')
-rw-r--r--module/os/freebsd/zfs/zfs_ctldir.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/os/freebsd/zfs/zfs_ctldir.c b/module/os/freebsd/zfs/zfs_ctldir.c
index 4b95b49dc..42bb7551e 100644
--- a/module/os/freebsd/zfs/zfs_ctldir.c
+++ b/module/os/freebsd/zfs/zfs_ctldir.c
@@ -977,12 +977,13 @@ zfsctl_snapdir_lookup(struct vop_lookup_args *ap)
*/
VI_LOCK(*vpp);
if (((*vpp)->v_iflag & VI_MOUNT) == 0) {
+ VI_UNLOCK(*vpp);
/*
* Upgrade to exclusive lock in order to:
* - avoid race conditions
* - satisfy the contract of mount_snapshot()
*/
- err = VOP_LOCK(*vpp, LK_TRYUPGRADE | LK_INTERLOCK);
+ err = VOP_LOCK(*vpp, LK_TRYUPGRADE);
if (err == 0)
break;
} else {