Skip to content

overlay: check the file cache mutex - #16968

Merged
copybara-service[bot] merged 2 commits into
masterfrom
test/cl1013860148
Nov 4, 2026
Merged

copybara-service[bot] merged 2 commits into
masterfrom
test/cl1013860148

Conversation

@copybara-service

Copy link
Copy Markdown

overlay: check the file cache mutex

Copy-up replaces the cached file and its status flags under the overlay
file mutex. Mark all three cache fields so checklocks can verify that
readers and writers hold the same lock.

The last reference to the overlay file has already been dropped when
VFS calls Release, so teardown can drop the cached file without locking.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#16682 from tamird:review/overlay-file-cache-guards 05eca6e

Copy-up replaces the cached file and its status flags under the overlay
file mutex. Mark all three cache fields so checklocks can verify that
readers and writers hold the same lock.

The last reference to the overlay file has already been dropped when
VFS calls Release, so teardown can drop the cached file without locking.
@copybara-service copybara-service Bot added the exported Issue was exported automatically label Nov 4, 2026
@copybara-service
copybara-service Bot force-pushed the test/cl1013860148 branch 3 times, most recently from 38d54c6 to 22ebd4d Compare November 4, 2026 21:17
@copybara-service
copybara-service Bot merged commit a11d178 into master Nov 4, 2026
2 of 4 checks passed
@copybara-service
copybara-service Bot deleted the test/cl1013860148 branch November 4, 2026 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants