1
0
mirror of https://github.com/ceph/ceph synced 2025-03-30 23:40:09 +00:00

Merge pull request from yuyuyu101/wipasync-name

msg/async: set thread name for msgr worker

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Yuri Weinstein 2017-03-06 08:34:28 -08:00 committed by GitHub
commit 05ebe881d8

View File

@ -35,8 +35,11 @@ std::function<void ()> NetworkStack::add_thread(unsigned i)
{
Worker *w = workers[i];
return [this, w]() {
const uint64_t EventMaxWaitUs = 30000000;
w->center.set_owner();
char tp_name[16];
sprintf(tp_name, "msgr-worker-%d", w->id);
pthread_setname_np(pthread_self(), tp_name);
const uint64_t EventMaxWaitUs = 30000000;
w->center.set_owner();
ldout(cct, 10) << __func__ << " starting" << dendl;
w->initialize();
w->init_done();