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:10:15 +0000 (11:10 -0600)
commitc639118634cab93bdf7a8c1bdf7f1f4fd1f8a8ce
tree8a4d59a7a90e9ee7bc3f5b03ee744002b28d7e42
parentfdde9d6a1b8a559f5fa18a68cc8e8a35354b3ae9
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