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:08:43 +0000 (11:08 -0600)
commit7dcab231de3749e8056597b9b2271cd32b3797bf
treea88d69a6585d75fd7ce3e6812a105a0dd76b444f
parent4e701c06c54ec007041e20e5ef085711f38a0266
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