]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: disallow unsafe rbd_op_threads values 8459/head
authorJosh Durgin <jdurgin@redhat.com>
Tue, 5 Apr 2016 22:30:18 +0000 (15:30 -0700)
committerJosh Durgin <jdurgin@redhat.com>
Tue, 5 Apr 2016 22:32:42 +0000 (15:32 -0700)
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 <jdurgin@redhat.com>
src/librbd/ImageCtx.cc

index 770e87189c6fc5a6f13e3e7f224af19d9c28edc1..fa05103168664a67b0e5d6162b05aadc268e6115 100644 (file)
@@ -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();
   }