Skip to content

Fix locking for ErrLayerUnaccounted#720

Merged
Luap99 merged 3 commits intocontainers:mainfrom
mtrmac:check-unaccounted-locking
Apr 8, 2026
Merged

Fix locking for ErrLayerUnaccounted#720
Luap99 merged 3 commits intocontainers:mainfrom
mtrmac:check-unaccounted-locking

Conversation

@mtrmac
Copy link
Copy Markdown
Contributor

@mtrmac mtrmac commented Mar 27, 2026

  • The graph driver contents are locked by layerStore's locking, not by the graph driver lock
  • Because we dropped the layer store lock, a layer might have legitimately been added in the meantime; don't treat it as unaccounted-for.

@nalind @giuseppe PTAL.

mtrmac added 3 commits March 27, 2026 17:09
We already have 3 users, and we will need another one.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
- The graph driver contents are locked by layerStore's locking,
  not by the graph driver lock
- Because we dropped the layer store lock, a layer might have legitimately
  been added in the meantime; don't treat is as unaccounted.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
@github-actions github-actions bot added the storage Related to "storage" package label Mar 27, 2026
Copy link
Copy Markdown
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Luap99 Luap99 merged commit b8ce1e1 into containers:main Apr 8, 2026
37 checks passed
@mtrmac mtrmac deleted the check-unaccounted-locking branch April 8, 2026 17:50
mtrmac added a commit to mtrmac/container-libs that referenced this pull request Apr 8, 2026
I failed to push the latest version of my code in containers#720.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

storage Related to "storage" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants