mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 01:16:30 -05:00
The CAS on _last_scale_time_usecs was performed before checking whether the pool was already at max_threads. When the pool was at capacity, the cooldown window was consumed but no thread was added. This suppressed legitimate scaling attempts from the monitor thread for the entire cooldown period. Move the CAS after the max-threads check and the _scaling_mutex acquisition so the cooldown is only claimed when a thread will actually be added. The mutex serializes concurrent callers, and the CAS still deduplicates concurrent pressure-grow attempts that pass the check simultaneously. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||