]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/ActivePyModules.cc: fix cases where GIL is held while attempting to lock mutex
authorCory Snyder <csnyder@iland.com>
Tue, 17 May 2022 09:24:53 +0000 (05:24 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 18 May 2022 15:52:22 +0000 (11:52 -0400)
commit99de9e0215e4c7e860ab29f993606565a257e76d
tree64d8fdfb1ec2f61e7c71b64e6ec36b409520dbb8
parent209e51b856505df4f2f16e54c0d7a9e070973185
mgr/ActivePyModules.cc: fix cases where GIL is held while attempting to lock mutex

The mgr process can deadlock if the GIL is held while attempting to lock a mutex.
Relevant regressions were introduced in commit a356bac. This fixes those regressions
and also cleans up some unnecessary yielding of the GIL.

Fixes: https://tracker.ceph.com/issues/55687
Signed-off-by: Cory Snyder <csnyder@iland.com>
(cherry picked from commit 46a7c1c61189334d55e54ef16fa627e3d9e5a905)
src/mgr/ActivePyModules.cc