]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-nbd: don't abuse rbd_cache_writethrough_until_flush 34789/head
authorMykola Golub <mgolub@suse.com>
Wed, 13 May 2020 12:15:39 +0000 (13:15 +0100)
committerMykola Golub <mgolub@suse.com>
Wed, 13 May 2020 12:15:39 +0000 (13:15 +0100)
commit2f700460fb28e82ed088cb50c8cff7aaa13a8951
treeafd2232d54a1929871156531f37c3ebaf57315fe
parenta834e7115ee1344d8bc55631f378ad0826d5a56a
rbd-nbd: don't abuse rbd_cache_writethrough_until_flush

If rbd_cache and rbd_cache_writethrough_until_flush options are
set, do not use flush for internal purposes unless the user
issued flush, so it won't unintentionally enable writeback cache
when it is still unsafe.

Signed-off-by: Mykola Golub <mgolub@suse.com>
src/tools/rbd_nbd/rbd-nbd.cc