]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common: cache pthread names
authorPatrick Donnelly <pdonnell@ibm.com>
Thu, 24 Oct 2024 03:16:03 +0000 (23:16 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Thu, 9 Jan 2025 16:17:08 +0000 (11:17 -0500)
commit6255143a06c0d6f84c7c3539a810a8a36f8f97b8
treedf3292851febeeb2a73e9cddb430552ddd74f70f
parent6d312389b4d60c3d259250bc49a69146546fb2cb
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.

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)

Conflicts:
src/ceph_nvmeof_monitor_client.cc: not present
src/mds/Beacon.cc: trivial
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