From: chenerqi Date: Mon, 28 Dec 2020 13:03:13 +0000 (+0800) Subject: librbd: optionally exclude ops from qos X-Git-Tag: v17.1.0~3050^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e87e1806d8658321bc239a8d690b0376ee36ebc8;p=ceph.git librbd: optionally exclude ops from qos Optionally exclude ops from qos, set by a set of comma-delimated keys, for example discards w/mkfs (instead of disabling it) in combination with QoS BPS limits, exclude discard ops can control cluster storage capacity usage and client network bandwith at the same time. Signed-off-by: Erqi Chen Signed-off-by: Shuai Ni --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d5ce19c54b7..05235b69185 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -385,6 +385,7 @@ set(libcommon_files osdc/Objecter.cc osdc/error_code.cc librbd/Features.cc + librbd/io/IoOperations.cc ${mds_files}) set_source_files_properties(ceph_ver.c APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_BINARY_DIR}/src/include/ceph_ver.h) diff --git a/src/common/options.cc b/src/common/options.cc index 367e52ee0db..afa64f661b3 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -15,8 +15,9 @@ // Definitions for enums #include "common/perf_counters.h" -// rbd feature validation +// rbd feature and io operation validation #include "librbd/Features.h" +#include "librbd/io/IoOperations.h" using std::ostream; using std::ostringstream; @@ -7683,6 +7684,29 @@ static std::vector