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 17:41:27 +0000 (11:41 -0600)
commit75d051c7313aaa977bb67fde9b4094ed6da5ad4e
treef7a681d92d10f366f26cdd5dd1a6f10c2685f996
parentd4360edd1ca88cb1f144bf77f7df23ebf1f90632
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