[Bug 258208] [zfs] locks up when using rollback or destroy on both 13.0-RELEASE & sysutils/openzfs port

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 29 Sep 2021 06:37:06 UTC

--- Comment #8 from Andriy Gapon <avg@FreeBSD.org> ---
Another potential solution -- and I have / had a prototype for it (it's for the
older FreeBSD ZFS) -- is to have custom lock / unlock vops in ZFS and to enter
the teardown lock before acquiring the vnode lock.  This establishes the lock
order friendly to zfs_rezget.

There were some tricky details to get that approach working, but I think that I
got it working in the end.

The new order between the teardown and the vnode locks also allowed to simplify
some code in other vops where currently we have to drop and req-acquire the
teardown lock each time we need to get the vnode lock.

You are receiving this mail because:
You are the assignee for the bug.