From 55b29a71c238ac465d05035a51808a3b616a8f46 Mon Sep 17 00:00:00 2001 From: Yuan Zhou Date: Wed, 5 Sep 2018 14:40:54 +0800 Subject: [PATCH 09/10] librbd: clean up on rbd shared cache Signed-off-by: Dehao Shang Signed-off-by: Yuan Zhou --- src/common/options.cc | 4 + .../SharedPersistentObjectCacherObjectDispatch.cc | 28 ++- .../SharedPersistentObjectCacherObjectDispatch.h | 3 +- src/tools/rbd_cache/CacheController.cc | 11 +- src/tools/rbd_cache/CacheController.h | 1 - src/tools/rbd_cache/CacheControllerSocket.hpp | 213 +++++++++++++------ .../rbd_cache/CacheControllerSocketClient.hpp | 226 ++++++++++++++------- src/tools/rbd_cache/CacheControllerSocketCommon.h | 2 + 8 files changed, 340 insertions(+), 148 deletions(-) diff --git a/src/common/options.cc b/src/common/options.cc index b334c1e..3172744 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -6365,6 +6365,10 @@ static std::vector