]> git.proxmox.com Git - pve-qemu-kvm.git/blame - debian/patches/pve/0032-vma-writer-aio_set_fd_handler-update.patch
bump version to 2.6.2-2
[pve-qemu-kvm.git] / debian / patches / pve / 0032-vma-writer-aio_set_fd_handler-update.patch
CommitLineData
6fb04df7 1From 2d152da7999e912f6fc104f81a1616c3c6d96a89 Mon Sep 17 00:00:00 2001
ca0fe5f5
WB
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Thu, 10 Dec 2015 14:25:01 +0100
6fb04df7 4Subject: [PATCH 32/55] vma-writer: aio_set_fd_handler update
ca0fe5f5
WB
5
6passing 'false' as new is_external parameter to
7aio_set_fd_handler as per commit
8dca21e23ba: aio: Add "is_external" flag for event handlers
9
10For-patch: introduce new vma archive format
11---
12 vma-writer.c | 4 ++--
13 1 file changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/vma-writer.c b/vma-writer.c
16index 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();
21
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--
322.1.4
33