https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281749

Konstantin Belousov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #24 from Konstantin Belousov <[email protected]> ---
Could it be that a parallel forced unmount goes on?

Anyway, apply the following patch and reproduce the issue.
Hopefully it will give the immediate direction to blame.

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 4dd9ed88d433..1db3fa7e5535 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
@@ -5716,7 +5716,7 @@ struct vop_reclaim_args {
        struct thread *a_td;
 };
 #endif
-
+#include <sys/kdb.h>
 static int
 zfs_freebsd_reclaim(struct vop_reclaim_args *ap)
 {
@@ -5737,7 +5737,7 @@ zfs_freebsd_reclaim(struct vop_reclaim_args *ap)
        else
                zfs_zinactive(zp);
        ZFS_TEARDOWN_INACTIVE_EXIT_READ(zfsvfs);
-
+if (vp->v_usecount > 0) {vn_printf(vp, "reclaim with v_usecount %d\n",
vp->v_usecount); kdb_backtrace();}
        vp->v_data = NULL;
        return (0);
 }

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

Reply via email to