mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
If a command hold domains_lock, "xm list" would hang for waiting for the lock. Such as creating many VMs at a script (such as 20), command of "xm list" could hang for long time(10 mins). I think domains_lock here only protect update(). So, we shouldn't do update before command of "list" really get this lock, but xm do need show the domain's information quickly. In this patch, if command couldn't get the domains_lock after 20 times trying, "xm list" would show the information of VMs without update(). Signed-off-by: James Song (Wei) <jsong@novell.com>
The file test.py here is from the Zope project, and is Copyright (c) 2001, 2002 Zope Corporation and Contributors. This file is released under the Zope Public License, version 2.0, a copy of which is in the file ZPL-2.0.