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

storagefsm: Fix double unlock with ready WaitDeals sectors #5783

Merged
merged 1 commit into from
Mar 11, 2021

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Mar 11, 2021

We would double-unlock the inputLk when the miner had a sector in WaitDeals state become ready for sealing while the node wasn't running

Somehow those unlocks got left there when this was refactored, and would cause double unlock with the unlock here -> https://github.com/filecoin-project/lotus/blob/master/extern/storage-sealing/input.go#L33

Looked at other usages of this lock, and it seems like we don't have more cases of this

(manually reproduced and verified the fix on my node)

@magik6k magik6k merged commit 68d8087 into master Mar 11, 2021
@magik6k magik6k deleted the fix/fsm-waitdeals-panic branch March 11, 2021 14:18
@arajasek arajasek mentioned this pull request Mar 17, 2021
38 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants