]>
Commit | Line | Data |
---|---|---|
e220dcdd WB |
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
2 | From: Wolfgang Bumiller <w.bumiller@proxmox.com> | |
83faa3fe TL |
3 | Date: Mon, 6 Apr 2020 12:16:36 +0200 |
4 | Subject: [PATCH] PVE: [Config] rbd: block: rbd: disable | |
53e83913 | 5 | rbd_cache_writethrough_until_flush |
e220dcdd WB |
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> | |
b855dce7 | 15 | Signed-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 | |
20 | diff --git a/block/rbd.c b/block/rbd.c | |
8dca018b | 21 | index 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"); |