Skip to content

Fix locking for ErrLayerUnaccounted#720

Open
mtrmac wants to merge 3 commits intocontainers:mainfrom
mtrmac:check-unaccounted-locking
Open

Fix locking for ErrLayerUnaccounted#720
mtrmac wants to merge 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

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.

2 participants