Skip to content

Conversation

copybara-service[bot]
Copy link

fsgofer: update lastUnlockedDentry only after unlocking the dentry

Update lastUnlockedDentry only after the mutex has been unlocked. If
doRevalidationLisafs panics, deferred functions are executed. Updating
lastUnlockedDentry earlier could lead to a deferred function attempting to
acquire an already locked mutex, resulting in a deadlock.

@copybara-service copybara-service bot added the exported Issue was exported automatically label Sep 20, 2025
@copybara-service copybara-service bot force-pushed the test/cl809324448 branch 2 times, most recently from 44bc49a to b40d25c Compare September 22, 2025 17:11
Update lastUnlockedDentry only after the mutex has been unlocked.  If
doRevalidationLisafs panics, deferred functions are executed. Updating
lastUnlockedDentry earlier could lead to a deferred function attempting to
acquire an already locked mutex, resulting in a deadlock.

PiperOrigin-RevId: 810075556
@copybara-service copybara-service bot merged commit efacb45 into master Sep 22, 2025
0 of 2 checks passed
@copybara-service copybara-service bot deleted the test/cl809324448 branch September 22, 2025 17:53
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.

1 participant