From: Josh Durgin Date: Tue, 5 Apr 2016 22:30:18 +0000 (-0700) Subject: librbd: disallow unsafe rbd_op_threads values X-Git-Tag: v10.1.2~49^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F8459%2Fhead;p=ceph.git 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 --- 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(); }