Skip to content

replay: do not hold bank forks lock during mark_dead_slot#1597

Merged
AshwinSekar merged 1 commit intoanza-xyz:masterfrom
AshwinSekar:lock-mark-dead-slot
Jun 13, 2024
Merged

replay: do not hold bank forks lock during mark_dead_slot#1597
AshwinSekar merged 1 commit intoanza-xyz:masterfrom
AshwinSekar:lock-mark-dead-slot

Conversation

@AshwinSekar
Copy link
Copy Markdown

Problem

In order to access the root, we hold the bank_forks lock for the entirety of mark_dead_slot. However it does not seem this function needs to acquire the lock.

Summary of Changes

Copy the root out, so the lock is not held.

See original discussion here
#1002 (comment)

@AshwinSekar AshwinSekar requested a review from carllin June 4, 2024 19:55
@AshwinSekar AshwinSekar merged commit da36ce7 into anza-xyz:master Jun 13, 2024
@AshwinSekar AshwinSekar deleted the lock-mark-dead-slot branch June 13, 2024 02:14
samkim-crypto pushed a commit to samkim-crypto/agave that referenced this pull request Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants