]> git.ipfire.org Git - thirdparty/qemu.git/commit
qemu-ga: execute fsfreeze-freeze in reverse order of mounts
authorTomoki Sekiyama <tomoki.sekiyama@hds.com>
Tue, 1 Oct 2013 21:09:53 +0000 (17:09 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 9 Dec 2013 20:45:41 +0000 (14:45 -0600)
commit9388fdb603e69d1c251f9bdfaac575ad3258583a
tree61feb46c31d6aad44f05528f17c84fafa5e8621c
parent68a1ac19a1a24bc47c8c6db1bca7026e2199cc32
qemu-ga: execute fsfreeze-freeze in reverse order of mounts

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 freezes filesystems in reverse order of mounts.

Signed-off-by: Tomoki Sekiyama <tomoki.sekiyama@hds.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
*fix up commit msg
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
(cherry picked from commit e5d9adbdab972a2172815c1174aed3fabcc448f1)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
qga/commands-posix.c