Date: Wed, 29 Sep 2021 06:37:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258208 --- 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.