]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: optionally exclude ops from qos
authorchenerqi <chenerqi@gmail.com>
Mon, 28 Dec 2020 13:03:13 +0000 (21:03 +0800)
committerchenerqi <chenerqi@gmail.com>
Fri, 22 Jan 2021 08:32:11 +0000 (16:32 +0800)
commite87e1806d8658321bc239a8d690b0376ee36ebc8
treeaf7f310900c78ee4d84cc83aa31b32dc8d48c91e
parentf977d1acf25258860d918198c88f4f07a3fe77e0
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 <chenerqi@kuaishou.com>
Signed-off-by: Shuai Ni <nishuai@kuaishou.com>
15 files changed:
src/CMakeLists.txt
src/common/options.cc
src/crimson/CMakeLists.txt
src/librbd/CMakeLists.txt
src/librbd/ImageCtx.cc
src/librbd/io/ImageDispatcher.cc
src/librbd/io/ImageDispatcher.h
src/librbd/io/ImageDispatcherInterface.h
src/librbd/io/IoOperations.cc [new file with mode: 0644]
src/librbd/io/IoOperations.h [new file with mode: 0644]
src/librbd/io/QosImageDispatch.cc
src/librbd/io/QosImageDispatch.h
src/librbd/io/Types.h
src/test/common/test_context.cc
src/test/librbd/mock/io/MockImageDispatcher.h