]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/DaemonState: Minimise time we hold the DaemonStateIndex lock
authorBrad Hubbard <bhubbard@redhat.com>
Wed, 30 Jul 2025 23:12:23 +0000 (09:12 +1000)
committerPrashant D <pdhange@redhat.com>
Wed, 10 Sep 2025 01:27:52 +0000 (21:27 -0400)
commit6aac9a583fed5bbd9e120c14c51ce7db9f620ae4
treeea525417f17a01e9fdafb89c39e14051927931ac
parentf4e8e81f6a347ddab473bc91cbb51b457901449c
mgr/DaemonState: Minimise time we hold the DaemonStateIndex lock

Calling back into python functions whilst holding the lock can result in
this thread being queued for the GIL and resulting in extended delays
for threads waiting to acquire the lock.

Fixes: https://tracker.ceph.com/issues/72337
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit b4304d521f61b61515cade872824210e7d67f6db)
src/mgr/DaemonState.h