zfs: Fatal trap 12: page fault while in kernel mode
Andriy Gapon
avg at freebsd.org
Thu Jul 30 13:14:17 UTC 2009
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
More information about the freebsd-current
mailing list