]> git.proxmox.com Git - pve-qemu.git/blob - debian/patches/pve/0008-PVE-Config-rbd-block-rbd-disable-rbd_cache_writethro.patch
bump version to 3.0.0-1
[pve-qemu.git] / debian / patches / pve / 0008-PVE-Config-rbd-block-rbd-disable-rbd_cache_writethro.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3 Date: Fri, 31 Aug 2018 09:32:55 +0200
4 Subject: [PATCH] PVE: [Config] rbd: block: rbd: disable
5 rbd_cache_writethrough_until_flush
6
7 Either the cache mode asks for a cache or not. There's no
8 point in having a "temporary" cache mode. This option AFAIK
9 was introduced as a hack for ancient virtio drivers. If
10 anything, we should have a separate option for it. Better
11 yet, VMs affected by the related issue should simply
12 explicitly choose writethrough.
13
14 Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
15 ---
16 block/rbd.c | 2 ++
17 1 file changed, 2 insertions(+)
18
19 diff --git a/block/rbd.c b/block/rbd.c
20 index ca8e5bbace..34ae730711 100644
21 --- a/block/rbd.c
22 +++ b/block/rbd.c
23 @@ -634,6 +634,8 @@ static int qemu_rbd_connect(rados_t *cluster, rados_ioctx_t *io_ctx,
24 rados_conf_set(*cluster, "rbd_cache", "false");
25 }
26
27 + rados_conf_set(*cluster, "rbd_cache_writethrough_until_flush", "false");
28 +
29 r = rados_connect(*cluster);
30 if (r < 0) {
31 error_setg_errno(errp, -r, "error connecting");
32 --
33 2.11.0
34