]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: cache pthread names
authorPatrick Donnelly <pdonnell@ibm.com>
Thu, 24 Oct 2024 03:16:03 +0000 (23:16 -0400)
committerMilind Changire <mchangir@redhat.com>
Thu, 14 Nov 2024 03:22:50 +0000 (08:52 +0530)
commite53c2311fdebdfb830b771c608ecb0c10ebf886e
tree80497b511442c6082693ed0647490ecdb8ddd1df
parentf47183dea42ca90c7425f96c811403762d3559fd
common: cache pthread names

This provides common ceph entrypoints for the pthread_[gs]name functions which
will also cache a thread_local copy. This also removes the pthread_t parameter
which precipitated the bug i50743.

Obviously, the overall goal here is to avoid system calls.

Conflicts:
src/ceph_nvmeof_monitor_client.cc (not available in reef)
src/common/ceph_timer.h
src/include/compat.h
src/mds/Beacon.cc
src/rgw/driver/rados/rgw_notify.cc
src/rgw/rgw_lua_background.cc (not available in reef)

See-also: https://tracker.ceph.com/issues/50743
Fixes: 0be8d01c9ddde0d7d24edd34dc75f6cfc861b5ba
Fixes: https://tracker.ceph.com/issues/68691
Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
(cherry picked from commit 7de5af59c2741b4203cc17f619ca53096c97b8ff)
Signed-off-by: Milind Changire <mchangir@redhat.com>
24 files changed:
src/ceph_mds.cc
src/ceph_mgr.cc
src/ceph_mon.cc
src/client/SyntheticClient.cc
src/common/Thread.cc
src/common/Thread.h
src/common/assert.cc
src/common/ceph_timer.h
src/common/code_environment.cc
src/common/compat.cc
src/common/obj_bencher.cc
src/crimson/os/alienstore/thread_pool.cc
src/global/signal_handler.cc
src/include/compat.h
src/log/Entry.h
src/log/Log.cc
src/mds/Beacon.cc
src/msg/async/Stack.h
src/msg/async/rdma/RDMAStack.cc
src/rgw/driver/rados/rgw_notify.cc
src/rgw/rgw_amqp.cc
src/rgw/rgw_kafka.cc
src/rgw/rgw_lua_background.cc
src/rgw/rgw_ratelimit.h