New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pacific: mgr/ActivePyModules.cc: fix cases where GIL is held while attempting to lock mutex #46302
pacific: mgr/ActivePyModules.cc: fix cases where GIL is held while attempting to lock mutex #46302
Conversation
…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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| without_gil_t no_gil; | ||
| with_gil_t with_gil{no_gil}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing the first line reverts the (unintentional) changes made by https://github.com/ceph/ceph/pull/44750/files#diff-50ab66411d9293d402a15e00ed6843a4d37889c616873e69534e609c210f72ecR248, that's perfect!
However, for removing the 2nd line we should declare the commit that introduced those changes in master, which is 1da9885. Some changes from that commit were already (and, again, unintentionally) introduced by a356bac (#44750), so this PR means that the half-baked commit has now been completely backported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://pulpito.ceph.com/?branch=wip-lrc-fix-pacific - none of the failures are related
|
https://pulpito.ceph.com/?branch=wip-lrc-fix-pacific Failures, unrelated: Details: |
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
Checklist