mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
zfs: stop passing LK_INTERLOCK to VOP_LOCK
There is an ongoing effort to eliminate this feature.
This commit is contained in:
parent
620d855fac
commit
4e1262ac99
1 changed files with 2 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue