]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
fix the bug that rdma polling thread uses the same thread name with msg worker
authorJin Cai <caijin.caij@alibaba-inc.com>
Wed, 9 Aug 2017 07:56:31 +0000 (15:56 +0800)
committerJin Cai <caijin.caij@alibaba-inc.com>
Wed, 9 Aug 2017 11:50:04 +0000 (19:50 +0800)
Signed-off-by: Jin Cai <caijin.caij@alibaba-inc.com>
src/msg/async/rdma/RDMAStack.cc

index e16052f1dec22129eb3955eafd00bd30138c0310..38e8c897ca4b9596c37953ac302c36caebe31fba 100644 (file)
@@ -19,6 +19,7 @@
 #include <sys/resource.h>
 
 #include "include/str_list.h"
+#include "include/compat.h"
 #include "common/deleter.h"
 #include "common/Tub.h"
 #include "RDMAStack.h"
@@ -95,6 +96,7 @@ void RDMADispatcher::polling_start()
   assert(rx_cq);
 
   t = std::thread(&RDMADispatcher::polling, this);
+  ceph_pthread_setname(t.native_handle(), "rdma-polling");
 }
 
 void RDMADispatcher::polling_stop()