Skip to content

[release-1.51] Fix locking for ErrLayerUnaccounted#2394

Merged
TomSweeneyRedHat merged 5 commits into
containers:release-1.51from
TomSweeneyRedHat:dev/tsweeney/accel-650-release-1.51
May 8, 2026
Merged

[release-1.51] Fix locking for ErrLayerUnaccounted#2394
TomSweeneyRedHat merged 5 commits into
containers:release-1.51from
TomSweeneyRedHat:dev/tsweeney/accel-650-release-1.51

Conversation

@TomSweeneyRedHat
Copy link
Copy Markdown
Member

Cherry-pick the commits from containers/container-libs#720 and containers/container-libs#751 to address issues with storage not freeing up when it should

Fixes: https://redhat.atlassian.net/browse/ACCELFIX-649

mtrmac added 4 commits May 6, 2026 16:36
We already have 3 users, and we will need another one.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
(cherry picked from commit 7cac518a00309136d7887fa059b740f3ea7c893e)
Signed-off-by: Tom Sweeney <tsweeney@redhat.com>
Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
(cherry picked from commit 4e5f9d59bd2ecad80367f8e0e9053940e87d2092)
Signed-off-by: Tom Sweeney <tsweeney@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>
(cherry picked from commit 8311e6c7bba621e2e32526e9c8451eb1c44e78c8)
Signed-off-by: Tom Sweeney <tsweeney@redhat.com>
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>
(cherry picked from commit 0ebd8a22a08504b817148f3e86a50a8f9768fbad)
Signed-off-by: Tom Sweeney <tsweeney@redhat.com>
@mtrmac
Copy link
Copy Markdown
Collaborator

mtrmac commented May 6, 2026

The failing tests probably need some variant of containers/container-libs#818 . (I didn’t check anything else yet)

No longer built fuse-overlayfs and bats from source, we have latest
versions in the CI images already.

The CI broke as fuse-overlayfs was rewritten in rust we can no longer
compile it like this.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
(cherry picked from commit c4beb460c234e34f77072b282c2bf2209eea11eb)
Signed-off-by: Tom Sweeney <tsweeney@redhat.com>
Copy link
Copy Markdown
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

LGTM. (Some of the refactoring is not essential, but it’s been used on main long enough that it should be safe, and minimizing manual work in backports is valuable.)

Please merge whenever appropriate.

@TomSweeneyRedHat
Copy link
Copy Markdown
Member Author

Merging per @mtrmac, thanks!

@TomSweeneyRedHat TomSweeneyRedHat merged commit 141fa57 into containers:release-1.51 May 8, 2026
17 checks passed
@TomSweeneyRedHat
Copy link
Copy Markdown
Member Author

And booger, I forgot to add a version bump. Off to do that.

@TomSweeneyRedHat TomSweeneyRedHat deleted the dev/tsweeney/accel-650-release-1.51 branch May 8, 2026 14:38
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.

3 participants