]> git.proxmox.com Git - pve-qemu.git/blame - debian/patches/pve/0007-PVE-Config-rbd-block-rbd-disable-rbd_cache_writethro.patch
udpate and rebase to QEMU v6.0.0
[pve-qemu.git] / debian / patches / pve / 0007-PVE-Config-rbd-block-rbd-disable-rbd_cache_writethro.patch
CommitLineData
e220dcdd
WB
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
83faa3fe
TL
3Date: Mon, 6 Apr 2020 12:16:36 +0200
4Subject: [PATCH] PVE: [Config] rbd: block: rbd: disable
53e83913 5 rbd_cache_writethrough_until_flush
e220dcdd
WB
6
7Either the cache mode asks for a cache or not. There's no
8point in having a "temporary" cache mode. This option AFAIK
9was introduced as a hack for ancient virtio drivers. If
10anything, we should have a separate option for it. Better
11yet, VMs affected by the related issue should simply
12explicitly choose writethrough.
13
14Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
b855dce7 15Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
e220dcdd 16---
53e83913
WB
17 block/rbd.c | 2 ++
18 1 file changed, 2 insertions(+)
e220dcdd
WB
19
20diff --git a/block/rbd.c b/block/rbd.c
8dca018b 21index f098a89c7b..b691c32c70 100644
e220dcdd
WB
22--- a/block/rbd.c
23+++ b/block/rbd.c
8dca018b 24@@ -610,6 +610,8 @@ static int qemu_rbd_connect(rados_t *cluster, rados_ioctx_t *io_ctx,
53e83913 25 rados_conf_set(*cluster, "rbd_cache", "false");
e220dcdd
WB
26 }
27
53e83913
WB
28+ rados_conf_set(*cluster, "rbd_cache_writethrough_until_flush", "false");
29+
30 r = rados_connect(*cluster);
e220dcdd 31 if (r < 0) {
53e83913 32 error_setg_errno(errp, -r, "error connecting");