qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] qemu-ga: execute fsfreeze-freeze in reverse ord


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH] qemu-ga: execute fsfreeze-freeze in reverse order of mounts
Date: Tue, 01 Oct 2013 15:25:17 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130923 Thunderbird/17.0.9

On 10/01/2013 03:09 PM, Tomoki Sekiyama wrote:
> Currently, fsfreeze-freeze may cause deadlock if a guest has loopback mounts
> of image files in its disk; e.g.:
> 
>     # mount | grep ^/
>     /dev/vda1 / type ext4 (rw,noatime,seclabel,data=ordered)
>     /tmp/disk.img on /mnt type ext4 (rw,relatime,seclabel)
> 
> To avoid the deadlock, this freeze filesystems in reverse order of mounts.

s/freeze/freezes/

> 
> Signed-off-by: Tomoki Sekiyama <address@hidden>
> ---
>  qga/commands-posix.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Thaw already worked in the forward direction; with your patch, this
means thaw undoes the actions by freeze in the opposite order (last
frozen is first thawed), which is also a good thing.

Reviewed-by: Eric Blake <address@hidden>

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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