]> git.proxmox.com Git - mirror_qemu.git/commit - blockdev.c
block: complete all IOs before resizing a device
authorPeter Lieven <pl@dlhnet.de>
Mon, 11 Mar 2013 10:04:24 +0000 (11:04 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Mar 2013 16:51:31 +0000 (17:51 +0100)
commit92b7a08d64e5e3129fa885f9d180e5bddcb76b42
treea5d82d0be1107be81d8a7c3aa4f7d115356d18dc
parent5c916681ae2383f0425bb8a3680ade9d055f5dfe
block: complete all IOs before resizing a device

this patch ensures that all pending IOs are completed
before a device is resized. this is especially important
if a device is shrinked as it the bdrv_check_request()
result is invalidated.

Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c