qemu-devel
[Top][All Lists]
Advanced

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

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


From: Paolo Bonzini
Subject: [Qemu-devel] Re: [PATCH] Disk image shared and exclusive locks.
Date: Mon, 07 Dec 2009 15:38:50 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090922 Fedora/3.0-3.9.b4.fc12 Lightning/1.0pre Thunderbird/3.0b4

On 12/07/2009 02:39 PM, Anthony Liguori wrote:

That's a use-case that needs to be thought through.  Maybe commit should
attempt to force the lower level to acquire a write lock first?

Yes. This is an argument in favor of a "DWIM" lock option instead of giving shared/exclusive choice to the user: do not say what kind of operation you want to do, and let commit upgrade the lock in the future.

If the management tools wants to force shared/exclusive, they can do the locking themselves and tell QEMU to not lock.

Paolo





reply via email to

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