Re: zfs: Fatal trap 12: page fault while in kernel mode

From: Andriy Gapon <avg_at_freebsd.org>
Date: Thu, 30 Jul 2009 16:14:12 +0300
Thomas,

I wasn't clear - please make sure that you have original zfs_inactive (without the
changes that Pawel proposed) with the only change zfs_znode_free -> vrecycle.
I.e.:
if (zp->z_dbuf == NULL) {
        /*
         * The fs has been unmounted, or we did a
         * suspend/resume and this file no longer exists.
         */
        mutex_enter(&zp->z_lock);
        VI_LOCK(vp);
        vp->v_count = 0; /* count arrives as 1 */
        mutex_exit(&zp->z_lock);
        rw_exit(&zfsvfs->z_teardown_inactive_lock);
        vrecycle(vp, curthread);
        return;
}

I believe that the latest panic is a direct result of ZTOV(zp) = NULL line
introduced in zfs_vnops.c.2.patch.

reclaim function should stay patched with Pawel's patch.


-- 
Andriy Gapon
Received on Thu Jul 30 2009 - 11:14:17 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:52 UTC