HomePhabricator

net: Restrict period when cs_vNodes mutex is locked

Description

net: Restrict period when cs_vNodes mutex is locked

Summary:

his PR restricts the period when the cs_vNodes mutex is locked, prevents the only case when cs_vNodes could be locked before the ::cs_main.

This change makes the explicit locking of recursive mutexes in the explicit order redundant.

Backport of core#21563.

Test Plan:
With clang and debug:

ninja check-all

./contrib/teamcity/build-configurations.py build-tsan

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D11301

Details

Provenance
FabienAuthored on Apr 4 2022, 18:52
FabienPushed on Apr 5 2022, 08:17
Reviewer
Restricted Project
Differential Revision
D11301: net: Restrict period when cs_vNodes mutex is locked
Parents
rABC26e7529b03ec: Remove duplicated (and misplaced) node disconnection logging
Branches
Unknown
Tags
Unknown