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

[v0.8 backport] metadata: hold lock on storageitem update #3088

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Sep 6, 2022

The locks usage is mixed up because two locks separate locks
are actually needed. With a specific lock, calls to SetValue
can be protected.

(cherry picked from commit 976b7e9)

@thaJeztah
Copy link
Member Author

The locks usage is mixed up because two locks separate locks
are actually needed. With a specific lock, calls to SetValue
can be protected.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 976b7e9)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah marked this pull request as ready for review September 7, 2022 19:26
@thaJeztah
Copy link
Member Author

/cc @cpuguy83

@thaJeztah
Copy link
Member Author

Thanks! FTR, I decided not to jinx it and to keep this one for the next moby patch release (should be ready for merge now though).

@crazy-max crazy-max merged commit 3a1eeca into moby:v0.8 Sep 9, 2022
@thaJeztah thaJeztah deleted the 0.8_backport_metadata_lock branch September 9, 2022 10:20
@thaJeztah thaJeztah changed the title [0.8 backport] metadata: hold lock on storageitem update [v0.8 backport] metadata: hold lock on storageitem update Sep 9, 2022
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.

4 participants