Revert "[Cl] Avoid poller callbacks blocking each other". To fix #2629 #2633
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

This reverts commit a85f1fd, in order to fix regression reported in #2629.
While investigating issue #2629 (in 5.9.0) by running more tests, I saw the following deadlock, appears to be the cause of #2629. This would be a regression with respect to 5.8.4.
and
Same IOEvents::Channel involved between the two threads, but different XrdCl::Stream. (This is a regression because a85f1fd made a call of ForceDisconnect asynchronous with respect to the IOEvents::Poller callback).
I thought the best way to address the #2629 is to initially revert a85f1fd in the next patch release, altough doing so leaves the original reason for the commit, #2578 unresolved. However that latter bug was only noticed by me and is presumably not curerntly being reported in any production situation. So I propose to make a new fix for #2578 later, and allow for more testing, with that to be included in R6 or a furuter 5.9.x patch release.
#2578 is more likely to be encountered if multiple streams (substreams) are in use by a long lived client process, e.g. in xcache or in an application like EOS fuse client. This situation could arrise, e.g. if xcache was configured with the non-default XRD_TLSNODATA=1, as in many situations root:// origins are being configured to require TLS on the login stream, probably beause of ZTN (and the client would introduce a bound sub-stream to support non-tls data channel).