diff --git a/src/tools/cephfs/cephfs-tool.cc b/src/tools/cephfs/cephfs-tool.cc index 576b6481c02..3991deff010 100644 --- a/src/tools/cephfs/cephfs-tool.cc +++ b/src/tools/cephfs/cephfs-tool.cc @@ -426,6 +426,7 @@ bench_write_worker( ceph_pthread_setname(("wr-worker-" + std::to_string(thread_id)).c_str()); auto duration_limit = std::chrono::seconds(config.duration); + ceph_pthread_setname(("wr-worker-" + std::to_string(thread_id)).c_str()); if (config.per_thread_mount) { if (int rc = setup_mount(&cmount, config, ss); rc < 0) { ss << "Thread " << thread_id << " mount failed: " << strerror(-rc) << std::endl; @@ -762,6 +763,7 @@ bench_read_worker( struct ceph_mount_info *cmount = shared_cmount; ceph_pthread_setname(("rd-worker-" + std::to_string(thread_id)).c_str()); auto duration_limit = std::chrono::seconds(config.duration); + ceph_pthread_setname(("rd-worker-" + std::to_string(thread_id)).c_str()); if (config.per_thread_mount) { if (int rc = setup_mount(&cmount, config, ss); rc < 0) {