On 01/21/2011 04:21 AM, Daniel P. Berrange wrote:
On Fri, Jan 21, 2011 at 04:28:07PM +0800, Wen Congyang wrote:
> The function virUnrefConnect() may call virReleaseConnect() to release
> the dest connection, and the function virReleaseConnect() will call
> conn->driver->close().
>
> So the function virUnrefConnect() should be surrounded by
> qemuDomainObjEnterRemoteWithDriver() and
> qemuDomainObjExitRemoteWithDriver() to prevent possible deadlock between
> two communicating libvirt daemons.
>
> See commit f0c8e1cb3774d6f09e2681ca1988bf235a343007 for further details.
ACK
Pushed.
--
Eric Blake eblake(a)redhat.com +1-801-349-2682
Libvirt virtualization library
http://libvirt.org