mirror of
https://github.com/ceph/ceph
synced 2025-03-30 23:40:09 +00:00
Merge pull request #13699 from yuyuyu101/wipasync-name
msg/async: set thread name for msgr worker Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
05ebe881d8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user