mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-12 02:23:45 +00:00
Document readdir merge mutex scope
- Explain that the mutex is per readdir call. - Document that only dirent deduplication and list append are serialized. - Clarify that per-branch opendir and getdents64 work runs outside the critical section.
This commit is contained in:
committed by
trapexit
parent
231aac15cd
commit
b13727abde
@@ -43,6 +43,12 @@ FUSE::ReadDirCOR::~ReadDirCOR()
|
||||
#include "fuse_readdir_cor_readdir.icpp"
|
||||
#endif
|
||||
|
||||
// Uses a per-call mutex. Lifetime is one readdir operation. It
|
||||
// serializes the dirent-merge step (dedup'ing of names + append to
|
||||
// dirents list) across at-most-branches-worth of parallel worker
|
||||
// tasks. Per-branch opendir + getdents64 run fully outside the
|
||||
// critical section, so the lock holds only long enough to merge each
|
||||
// batch.
|
||||
static
|
||||
inline
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user