-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Avoid deadlock in XrdRequestManager #12852
Avoid deadlock in XrdRequestManager #12852
Conversation
In order to avoid possibilities of deadlocks from the use of mutexes, the code dealing with disabled sources was changed to use thread safe containers.
We were getting a lock inversion between m_mutex and m_source_mutex in the case of an error. This is now avoided by avoiding calls to other functions while holding the m_source_mutex lock.
A new Pull Request was created by @Dr15Jones (Chris Jones) for CMSSW_8_0_X. It involves the following packages: Utilities/XrdAdaptor @cmsbuild, @smuzaffar, @Dr15Jones, @davidlange6 can you please review it and eventually sign? Thanks. Following commands in first line of a comment are recognized
|
@bbockelm please review. Can |
please test |
The tests are being triggered in jenkins. |
This is intended to fix such deadlocks as
...
|
Looks good to me! I'd still like to get the mutex out of |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_8_0_X IBs (tests are also fine). This pull request requires discussion in the ORP meeting before it's merged. @slava77, @davidlange6, @Degano, @smuzaffar |
@davidlange6 ping |
+1 |
Avoid deadlock in XrdRequestManager
Avoid a lock inversion which leads to a deadlock which can happen if an error occurs.