adding 2.5 pve patches and left-over extra fixes
[pve-qemu-kvm.git] / debian / patches / pve / 0032-vma-writer-aio_set_fd_handler-update.patch
blobbf870338cfa84f1cbf341164f5290d644ae831ef
1 From 712f8526b54566361c9d1e4cc81a40714f29a26f Mon Sep 17 00:00:00 2001
2 From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 Date: Thu, 10 Dec 2015 14:25:01 +0100
4 Subject: [PATCH 32/41] vma-writer: aio_set_fd_handler update
6 passing 'false' as new is_external parameter to
7 aio_set_fd_handler as per commit
8 dca21e23ba: aio: Add "is_external" flag for event handlers
10 For-patch: introduce new vma archive format
11 ---
12 vma-writer.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
15 diff --git a/vma-writer.c b/vma-writer.c
16 index 5cc4564..f5a7abd 100644
17 --- a/vma-writer.c
18 +++ b/vma-writer.c
19 @@ -231,9 +231,9 @@ vma_queue_write(VmaWriter *vmaw, const void *buf, size_t bytes)
20 vmaw->co_writer = qemu_coroutine_self();
22 while (done < bytes) {
23 - aio_set_fd_handler(qemu_get_aio_context(), vmaw->fd, NULL, vma_co_continue_write, vmaw);
24 + aio_set_fd_handler(qemu_get_aio_context(), vmaw->fd, false, NULL, vma_co_continue_write, vmaw);
25 qemu_coroutine_yield();
26 - aio_set_fd_handler(qemu_get_aio_context(), vmaw->fd, NULL, NULL, NULL);
27 + aio_set_fd_handler(qemu_get_aio_context(), vmaw->fd, false, NULL, NULL, NULL);
28 if (vmaw->status < 0) {
29 DPRINTF("vma_queue_write detected canceled backup\n");
30 done = -1;
31 --
32 2.1.4