[libvirt] [PATCH 14/14] Don't mark suspend as active until we know it is running

Eric Blake eblake at redhat.com
Tue Nov 29 17:09:31 UTC 2011


On 11/29/2011 08:44 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> If suspend failed for some reason (eg too short duration) then

s/eg/e.g./

> susquent attempts to trigger suspend were rejected because we

s/susquent/subsequent/

> had already marked a suspend as being in progress
> 
> * src/util/virnodesuspend.c: Don't mark suspend as active
>   until we've successfully triggered it
> ---
>  src/util/virnodesuspend.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

ACK.  As long as we only mark aboutToSuspend while holding the lock, and
only ever probe it while also holding the lock, then we're safe.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111129/7e5fc8d5/attachment-0001.sig>


More information about the libvir-list mailing list