From: Jin Cai Date: Wed, 9 Aug 2017 07:56:31 +0000 (+0800) Subject: fix the bug that rdma polling thread uses the same thread name with msg worker X-Git-Tag: v13.0.0~131^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9a1e1af3e39a8c93b7732b29a15901ea1924bdeb;p=ceph.git fix the bug that rdma polling thread uses the same thread name with msg worker Signed-off-by: Jin Cai --- diff --git a/src/msg/async/rdma/RDMAStack.cc b/src/msg/async/rdma/RDMAStack.cc index e16052f1dec..38e8c897ca4 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()