]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/WorkQueue: Before set_ioprio it must do create/try_create. 22620/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Tue, 19 Jun 2018 14:02:32 +0000 (22:02 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Tue, 19 Jun 2018 14:02:32 +0000 (22:02 +0800)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/common/WorkQueue.cc

index 5c8c772ab496f30e436fe13fc2f5bd3757dea045..f9d3455c2d0b2302bf7cb4d0e1575e21ee722013 100644 (file)
@@ -157,11 +157,12 @@ void ThreadPool::start_threads()
     ldout(cct, 10) << "start_threads creating and starting " << wt << dendl;
     _threads.insert(wt);
 
+    wt->create(thread_name.c_str());
+
     int r = wt->set_ioprio(ioprio_class, ioprio_priority);
     if (r < 0)
       lderr(cct) << " set_ioprio got " << cpp_strerror(r) << dendl;
 
-    wt->create(thread_name.c_str());
   }
 }