]> git.proxmox.com Git - pve-qemu.git/blame - debian/patches/pve/0032-rbd-fix-cache-mode-behavior.patch
remove efi-roms-1182.tar.xz
[pve-qemu.git] / debian / patches / pve / 0032-rbd-fix-cache-mode-behavior.patch
CommitLineData
e220dcdd
WB
1From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Wolfgang Bumiller <w.bumiller@proxmox.com>
3Date: Mon, 26 Mar 2018 14:20:31 +0200
4Subject: [PATCH] rbd: fix cache mode behavior
5
6Either the cache mode asks for a cache or not. There's no
7point in having a "temporary" cache mode. This option AFAIK
8was introduced as a hack for ancient virtio drivers. If
9anything, we should have a separate option for it. Better
10yet, VMs affected by the related issue should simply
11explicitly choose writethrough.
12
13Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
14---
15 block/rbd.c | 2 --
16 1 file changed, 2 deletions(-)
17
18diff --git a/block/rbd.c b/block/rbd.c
9b05d1d4 19index c4732a4b12..0374f3db27 100644
e220dcdd
WB
20--- a/block/rbd.c
21+++ b/block/rbd.c
9b05d1d4 22@@ -643,9 +643,7 @@ static int qemu_rbd_open(BlockDriverState *bs, QDict *options, int flags,
e220dcdd
WB
23 rados_conf_set(s->cluster, "rbd_cache", "true");
24 }
25
26- if (flags & BDRV_O_NO_FLUSH) {
27 rados_conf_set(s->cluster, "rbd_cache_writethrough_until_flush", "false");
28- }
29
30 r = rados_connect(s->cluster);
31 if (r < 0) {
32--
332.11.0
34