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
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.
14 Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
17 1 file changed, 2 insertions(+)
19 diff --git a/block/rbd.c b/block/rbd.c
20 index ca8e5bbace..34ae730711 100644
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");
27 + rados_conf_set(*cluster, "rbd_cache_writethrough_until_flush", "false");
29 r = rados_connect(*cluster);
31 error_setg_errno(errp, -r, "error connecting");