From 9a1e1af3e39a8c93b7732b29a15901ea1924bdeb Mon Sep 17 00:00:00 2001 From: Jin Cai Date: Wed, 9 Aug 2017 15:56:31 +0800 Subject: [PATCH] fix the bug that rdma polling thread uses the same thread name with msg worker Signed-off-by: Jin Cai --- src/msg/async/rdma/RDMAStack.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/msg/async/rdma/RDMAStack.cc b/src/msg/async/rdma/RDMAStack.cc index e16052f1dec22..38e8c897ca4b9 100644 --- a/src/msg/async/rdma/RDMAStack.cc +++ b/src/msg/async/rdma/RDMAStack.cc @@ -19,6 +19,7 @@ #include #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() -- 2.39.5