[Bug 204949] panic: mtx_lock of spin mutex @ /usr/src/head/sys/kern/vfs_subr.c:512

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 2 20:05:38 UTC 2015


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

Mateusz Guzik <mjg at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mjg at FreeBSD.org

--- Comment #8 from Mateusz Guzik <mjg at FreeBSD.org> ---
Since the vnode change not all fields get reinitialized and chances some of
"surviving" fields should not. In particular the union used to store
v_mountdhere vnode is suspicious.

Unfortunately I'm unable to reproduce the problem.

Can you try running with the following?

diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index ddab9f0..3c39c05 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -2784,6 +2784,7 @@ _vdrop(struct vnode *vp, bool locked)
 #endif
        vp->v_iflag = 0;
        vp->v_vflag = 0;
+       bzero(&vp->v_un, sizeof(vp->v_un));
        bo->bo_flag = 0;
        uma_zfree(vnode_zone, vp);
 }

There are few more suspicious fields, but they should not matter for your issue
('clustering stuff').

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


More information about the freebsd-bugs mailing list