-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mgr/ActivePyModules.cc: always release GIL before attempting to acqui…
…re a lock A thread that holds the GIL while attempting to acquire a mutex will cause a deadlock if another thread owns the mutex and is waiting on the GIL. The GIL must not be treated like an ordinary mutex since it may be preempted at any time or released when doing blocking I/O. Such deadlocks are severe since they starve all threads from access to the GIL and therefore prevent any Python code from running until the mgr process is restarted. Fixes: https://tracker.ceph.com/issues/39264 Signed-off-by: Cory Snyder <[email protected]>
- Loading branch information
Showing
1 changed file
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters