[Bug 220079] [kern] sys/kern/vfs_subr.c: double mutex locks in vgone

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jun 17 13:06:06 UTC 2017


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

Mateusz Guzik <mjg at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|freebsd-bugs at FreeBSD.org    |mjg at FreeBSD.org
             Status|New                         |Closed
                 CC|                            |mjg at FreeBSD.org
         Resolution|---                         |Not A Bug

--- Comment #1 from Mateusz Guzik <mjg at FreeBSD.org> ---
The code is:

VOP_LOCK(rootvp, LK_EXCLUSIVE|LK_INTERLOCK);
vgone(rootvp);

The LK_INTERLOCK flags tells the locking routine that the interlock is held and
the contract is that it is dropped prior to return, hence vgone is called
without the lock held.

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


More information about the freebsd-bugs mailing list