From 6c0ab75bceeff3239959f55b070a44fcb8dd6e23 Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Tue, 5 Apr 2016 15:30:18 -0700 Subject: [PATCH] librbd: disallow unsafe rbd_op_threads values Don't use this config option in librbd until http://tracker.ceph.com/issues/15034 is avoided. The option itself is still useful for mirroring threads, where ordering is unimportant. Signed-off-by: Josh Durgin --- src/librbd/ImageCtx.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librbd/ImageCtx.cc b/src/librbd/ImageCtx.cc index 770e87189c6f..fa0510316866 100644 --- a/src/librbd/ImageCtx.cc +++ b/src/librbd/ImageCtx.cc @@ -52,7 +52,7 @@ namespace { class ThreadPoolSingleton : public ThreadPool { public: explicit ThreadPoolSingleton(CephContext *cct) - : ThreadPool(cct, "librbd::thread_pool", "tp_librbd", cct->_conf->rbd_op_threads, + : ThreadPool(cct, "librbd::thread_pool", "tp_librbd", 1, "rbd_op_threads") { start(); } -- 2.47.3