qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Disk image shared and exclusive locks.


From: Chris Webb
Subject: Re: [Qemu-devel] [PATCH] Disk image shared and exclusive locks.
Date: Mon, 7 Dec 2009 14:58:07 +0000
User-agent: Mutt/1.5.20 (2009-06-14)

"Daniel P. Berrange" <address@hidden> writes:

> The only other alternative would be for the destination to open the disks,
> but not immediately acquire the locks. In the final stage of migration have
> the source release its lock & signal to the dest that it can now acquire
> the lock. The assumption being that the lock acquisition is far less likely
> to fail than the open(), so we focus on making sure we can properly handle
> open() failure.

This is what we've implemented as a prototype for sheepdog, with bdrv_claim
(happens on vm_start) and bdrv_release (happens on exit/vm_stop) hooks
available to block drivers.

Cheers,

Chris.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]