From 172ad649fb8a2410bdc078a5752b2ca09dc03ac2 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Wed, 12 Jun 2019 13:36:24 -0400 Subject: [PATCH] librbd: new rbd_journal_object_writethrough_until_flush option When set to true, the journal will not attempt to batch appends until after it receives the the first flush request from the user. Signed-off-by: Jason Dillaman --- src/common/options.cc | 6 ++++ src/librbd/Journal.cc | 30 +++++++++++++--- src/librbd/Journal.h | 4 +++ src/librbd/io/ImageRequest.cc | 1 + src/test/librbd/mock/MockJournal.h | 2 ++ src/test/librbd/test_mock_Journal.cc | 52 +++++++++++++++++++++------- 6 files changed, 79 insertions(+), 16 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index 2b02dbfa907d8..167bb45044ec4 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7304,6 +7304,12 @@ static std::vector