domain_conf: fix domain deadlock
authorPavel Hrdina <phrdina@redhat.com>
Mon, 22 Sep 2014 16:19:07 +0000 (18:19 +0200)
committerEric Blake <eblake@redhat.com>
Wed, 1 Oct 2014 18:15:44 +0000 (12:15 -0600)
commitf18b86e35f25eacbe1c68cd32caea0310e9d220c
tree9d7cec11127d3b03e503b796dc68614f97039558
parentcc05c6d5d2f7a577a1a365fbc5451fb6b5f57445
domain_conf: fix domain deadlock

If you use public api virConnectListAllDomains() with second parameter
set to NULL to get only the number of domains you will lock out all
other operations with domains.

Introduced by commit 2c680804.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
(cherry picked from commit fc22b2e74890873848b43fffae43025d22053669)
src/conf/domain_conf.c