Skip to content

build: ref-count policy FS lifecycle#3674

Merged
crazy-max merged 1 commit intodocker:masterfrom
tonistiigi:policy-fs-refs-fix
Feb 27, 2026
Merged

build: ref-count policy FS lifecycle#3674
crazy-max merged 1 commit intodocker:masterfrom
tonistiigi:policy-fs-refs-fix

Conversation

@tonistiigi
Copy link
Copy Markdown
Member

Make memoized policy FS ref-counted so repeated get()/close() pairs don't prematurely close shared handles.

Current implementation could fail when reading same file twice.

Make memoized policy FS ref-counted so repeated get()/close() pairs don't
prematurely close shared handles.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@@ -228,28 +228,48 @@ func normalizeLocalPolicyPath(name, contextDir string) string {

type memoizedPolicyFS struct {
Copy link
Copy Markdown
Member

@crazy-max crazy-max Feb 27, 2026

Choose a reason for hiding this comment

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

noticed this small typo:

Suggested change
type memoizedPolicyFS struct {
type memorizedPolicyFS struct {

@crazy-max crazy-max merged commit 989b863 into docker:master Feb 27, 2026
160 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants