Page MenuHomePhabricator

net: Restrict period when cs_vNodes mutex is locked
ClosedPublic

Authored by Fabien on Apr 4 2022, 18:57.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC8848294b18e6: 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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable