]> git.proxmox.com Git - mirror_qemu.git/commit
file-posix: Make .bdrv_co_truncate asynchronous
authorKevin Wolf <kwolf@redhat.com>
Thu, 21 Jun 2018 16:23:16 +0000 (18:23 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 29 Jun 2018 12:20:56 +0000 (14:20 +0200)
commit93f4e2ff4b31205d8bab0856631a52ed442b8b1c
treef90cae89c305d90c47e734ea947da3d0ddb7a795
parent1bc5f09f2e1b2be8f6f737b8d5352b438fc41492
file-posix: Make .bdrv_co_truncate asynchronous

This moves the code to resize an image file to the thread pool to avoid
blocking.

Creating large images with preallocation with blockdev-create is now
actually a background job instead of blocking the monitor (and most
other things) until the preallocation has completed.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
block/file-posix.c
include/block/raw-aio.h