Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deadlock for FdManager::fd_manager_lock && FdEntity::fdent_lock when write data concurrently #2438

Open
Roay opened this issue Mar 27, 2024 · 1 comment

Comments

@Roay
Copy link

Roay commented Mar 27, 2024

s3fs version : master

The First :
s3fs_write -> 'autoent.GetExistFdEntity' -> 'FdManager::get()->GetExistFdEntity'
first lock: FdManager::fd_manager_lock [line: 659 in fdcache.cpp]
sec lock: FdEntity::fdent_lock [line: 361 in fdcache_entity.cpp]
The Second :
s3fs_write -> 'ent->Write()' -> 'WriteMixMultipart()' -> 'NoCacheLoadAndPost' -> 'ChangeEntityToTempPath'
first lock: FdEntity::fdent_lock [line: 2088 in fdcache_entity.cpp]
sec lock: FdManager::fd_manager_lock [line: 780 in fdcache.cpp]

@Roay
Copy link
Author

Roay commented Mar 27, 2024

#Triggered fix deadlock in clean up cache

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

No branches or pull requests

1 participant