aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2023-04-07 23:37:20 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2023-04-07 23:37:56 +0000
commit182b21d4627655ff95f9ecd8a8e1066184391f16 (patch)
tree82d19a9a75ff30d1787f4069fef97d3b4fdf61c8
parentbb24eaea498268572aa140c35c02e02884cdf930 (diff)
downloadsrc-182b21d4627655ff95f9ecd8a8e1066184391f16.tar.gz
src-182b21d4627655ff95f9ecd8a8e1066184391f16.zip
openzfs: adopt to the new vn_lock_pair() interface
Sponsored by: The FreeBSD Foundation MFC after: 1 week
-rw-r--r--sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
index 2ddc7133d416..8a0a1d07c590 100644
--- a/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
+++ b/sys/contrib/openzfs/module/os/freebsd/zfs/zfs_vnops_os.c
@@ -6264,7 +6264,8 @@ zfs_freebsd_copy_file_range(struct vop_copy_file_range_args *ap)
goto bad_write_fallback;
}
} else {
- vn_lock_pair(invp, false, outvp, false);
+ vn_lock_pair(invp, false, LK_EXCLUSIVE, outvp, false,
+ LK_EXCLUSIVE);
if (VN_IS_DOOMED(invp) || VN_IS_DOOMED(outvp)) {
goto bad_locked_fallback;
}