]> git.proxmox.com Git - mirror_qemu.git/commit - block/rbd.c
rbd: make qemu's cache setting override any ceph setting
authorJosh Durgin <jdurgin@redhat.com>
Thu, 11 Jun 2015 03:28:45 +0000 (20:28 -0700)
committerKevin Wolf <kwolf@redhat.com>
Tue, 14 Jul 2015 15:15:23 +0000 (17:15 +0200)
commit99a3c89d5d538dc6c360e35dffb797cfe06e9cda
treeecc78e8ffae9bfe7c26c110af69878cde2db86f1
parent5a8ac6d9d70e1a078d04ad75a5c055b00a041d70
rbd: make qemu's cache setting override any ceph setting

To be safe, when cache=none is used ceph settings should not be able
to override it to turn on caching. This was previously possible with
rbd_cache=true in the rbd device configuration or a ceph configuration
file. Similarly, rbd settings could have turned off caching when qemu
requested it, although this would just be a performance problem.

Fix this by changing rbd's cache setting to match qemu after all other
ceph settings have been applied.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/rbd.c