From: Masaki Kanno Subject: [PATCH] Fix domain suspend by xend stop Date: Wed, 12 Mar 2008 18:28:53 +0900 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-2KZOggUTHwZzM1WskYUzf" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-2KZOggUTHwZzM1WskYUzf Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit Content-Description: Mail message body Hi, When I stopped xend by xend stop command, a domain suspend processing is frequently failed. This patch solves the problem. Step to reproduce: 1. xm new XXX on_xend_stop="suspend" 2. xm start XXX 3. xend stop In the xend stop, if the domain suspend processing is slept by state_updated.wait() of waitForShutdown(), then the domain suspend processing is not waked up again because state_updated.notifyAll() of _stateSet() is not executed. For the reason, processing of _on_domains_changed() is waited by domains_lock.acquire() because the domain suspend processing is keeping domains_lock and sleeping. The domain suspend processing got domains_lock at cleanup_domains(). Signed-off-by: Masaki Kanno Best regards, Kan --Boundary-2KZOggUTHwZzM1WskYUzf Content-Type: application/octet-stream; name="waitForShutdown.patch" Content-Disposition: attachment; filename="waitForShutdown.patch" Content-Transfer-Encoding: base64 ZGlmZiAtciBmMzMzMjgyMTdlZWUgdG9vbHMvcHl0aG9uL3hlbi94ZW5kL1hlbmREb21haW5J bmZvLnB5Ci0tLSBhL3Rvb2xzL3B5dGhvbi94ZW4veGVuZC9YZW5kRG9tYWluSW5mby5weQlN b24gTWFyIDEwIDIyOjUxOjU3IDIwMDggKzAwMDAKKysrIGIvdG9vbHMvcHl0aG9uL3hlbi94 ZW5kL1hlbmREb21haW5JbmZvLnB5CVR1ZSBNYXIgMTEgMTU6NDY6MzcgMjAwOCArMDkwMApA QCAtMjEwNCw3ICsyMTA0LDcgQEAgY2xhc3MgWGVuZERvbWFpbkluZm86CiAgICAgICAgIHNl bGYuc3RhdGVfdXBkYXRlZC5hY3F1aXJlKCkKICAgICAgICAgdHJ5OgogICAgICAgICAgICAg d2hpbGUgc2VsZi5fc3RhdGVHZXQoKSBpbiAoRE9NX1NUQVRFX1JVTk5JTkcsRE9NX1NUQVRF X1BBVVNFRCk6Ci0gICAgICAgICAgICAgICAgc2VsZi5zdGF0ZV91cGRhdGVkLndhaXQoKQor ICAgICAgICAgICAgICAgIHNlbGYuc3RhdGVfdXBkYXRlZC53YWl0KHRpbWVvdXQ9MS4wKQog ICAgICAgICBmaW5hbGx5OgogICAgICAgICAgICAgc2VsZi5zdGF0ZV91cGRhdGVkLnJlbGVh c2UoKQogCg== --Boundary-2KZOggUTHwZzM1WskYUzf Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-2KZOggUTHwZzM1WskYUzf--