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:16:51 +0000 (12:16 -0600)
commit26a87db8ea9320f08f5f029f4e1a47c04b322c64
tree874e10433af8dabe5ad66c6f801314870667b86a
parenta45c8466fa3531d35728575a1facc0406f97079a
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