From: lixiaoy1 Date: Thu, 31 Oct 2019 13:40:36 +0000 (-0400) Subject: librbd: add the framework for RWL writeback cache X-Git-Tag: v15.1.0~706^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=242d391408127ded975c24490af9347011db0174;p=ceph-ci.git librbd: add the framework for RWL writeback cache Signed-off-by: Peterson, Scott Signed-off-by: Li, Xiaoyan Signed-off-by: Lu, Yuan Signed-off-by: Chamarthy, Mahati --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 48ff49df83a..21c97e0182d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -189,8 +189,11 @@ include(CMakeDependentOption) CMAKE_DEPENDENT_OPTION(WITH_BLUESTORE_PMEM "Enable PMDK libraries" OFF "WITH_BLUESTORE" OFF) +CMAKE_DEPENDENT_OPTION(WITH_RBD_RWL "Enable librbd persistent write back cache" OFF + "WITH_RBD" OFF) + CMAKE_DEPENDENT_OPTION(WITH_SYSTEM_PMDK "Require and build with system PMDK" OFF - "WITH_BLUESTORE_PMEM" OFF) + "WITH_RBD_RWL OR WITH_BLUESTORE_PMEM" OFF) if(WITH_BLUESTORE_PMEM) set(HAVE_BLUESTORE_PMEM ON) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e0fed2abe6d..c2ac16de2a9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -413,9 +413,14 @@ if(WITH_DPDK) list(APPEND ceph_common_deps common_async_dpdk) endif() -if(WITH_BLUESTORE_PMEM) +if(WITH_BLUESTORE_PMEM OR WITH_RBD_RWL) if(WITH_SYSTEM_PMDK) - find_package(pmem REQUIRED) + if(WITH_BLUESTORE_PMEM) + find_package(pmem REQUIRED COMPONENTS pmem) + endif() + if(WITH_RBD_RWL) + find_package(pmem REQUIRED COMPONENTS pmemobj) + endif() else() include(Buildpmem) build_pmem() diff --git a/src/common/options.cc b/src/common/options.cc index c5cad0169cf..beedd0181bf 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -7297,6 +7297,23 @@ static std::vector