diff options
author | Kashyap Chamarthy <kchamart@redhat.com> | 2019-03-14 14:20:33 +0100 |
---|---|---|
committer | Kashyap Chamarthy <kchamart@redhat.com> | 2019-03-21 14:17:22 +0100 |
commit | 425f17e2af864c8c3068044be70f05180ec79b1b (patch) | |
tree | dc50c0ae42164c16dffc76958e8513327040d0b7 /nova/virt/libvirt/volume/smbfs.py | |
parent | 44edfa045c69b18b0a991475cb9c1d87b5941d52 (diff) | |
download | nova-425f17e2af864c8c3068044be70f05180ec79b1b.tar.gz |
libvirt: smbfs: Use 'writeback' QEMU cache mode
The 'writethrough' cache mode is terribly slow. Use the saner
alternative, "writeback" cache mode.
See further details in the documentation of change Ibe236988af2
("libvirt: Use 'writeback' QEMU cache mode when 'none' is not viable).
Related-Bug: #1818847
Change-Id: I2d84c8576c01202fa4ec73a57aa739e2a2f66d06
Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
Diffstat (limited to 'nova/virt/libvirt/volume/smbfs.py')
-rw-r--r-- | nova/virt/libvirt/volume/smbfs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/libvirt/volume/smbfs.py b/nova/virt/libvirt/volume/smbfs.py index 02534be0d0..d112af750c 100644 --- a/nova/virt/libvirt/volume/smbfs.py +++ b/nova/virt/libvirt/volume/smbfs.py @@ -34,7 +34,7 @@ class LibvirtSMBFSVolumeDriver(fs.LibvirtBaseFileSystemVolumeDriver): self).get_config(connection_info, disk_info) conf.source_type = 'file' - conf.driver_cache = 'writethrough' + conf.driver_cache = 'writeback' conf.source_path = connection_info['data']['device_path'] conf.driver_format = connection_info['data'].get('format', 'raw') return conf |