Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Jun 2017 13:06:04 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 220079] [kern] sys/kern/vfs_subr.c: double mutex locks in vgone
Message-ID:  <bug-220079-8-90ucumWPZk@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-220079-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-220079-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220079

Mateusz Guzik <mjg@FreeBSD.org> changed:

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

--- Comment #1 from Mateusz Guzik <mjg@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.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220079-8-90ucumWPZk>