mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 17:36:25 -05:00
Multiple concurrent enqueue_work_autoscale callers could all pass the cooldown check and each add a thread, overshooting max_threads and bypassing the intended rate limit. Use compare_exchange_strong on _last_scale_time_usecs so only one caller wins the cooldown window. Then hold _scaling_mutex for the thread-count check and _add_thread_locked call so the grow is atomic with respect to other scaling operations (monitor, set_threads). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| acutest | ||
| boost | ||
| CLI11 | ||
| fmt | ||
| khash | ||
| libfuse | ||
| nonstd | ||
| rapidhash | ||
| scope_guard | ||
| subprocess | ||