]> git.ipfire.org Git - thirdparty/qemu.git/commit
vmdk: Flush only once in vmdk_L2update()
authorKevin Wolf <kwolf@redhat.com>
Thu, 30 Apr 2020 13:30:06 +0000 (15:30 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 8 May 2020 11:26:35 +0000 (13:26 +0200)
commit2758be056ba814cd5a878b71c231af79a863b058
tree8dc591bd23ec7c58799ec905b10caa75a59e86d1
parent78cae78dbcf94a151203ab5c6e418d9d9094a59e
vmdk: Flush only once in vmdk_L2update()

If we have a backup L2 table, we currently flush once after writing to
the active L2 table and again after writing to the backup table. A
single flush is enough and makes things a little less slow.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20200430133007.170335-6-kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vmdk.c