Skip to content
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

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

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

AshwinSekar
Copy link

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
42 checks passed
@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