- process-thread-queue-depth is multiplied by the process thread
count. A large depth overflowed the int, e.g.
process-thread-queue-depth=1073741824 with 2 process threads, which
is undefined behaviour.
- Cap the product at INT_MAX. The queue only counts free slots, so a
depth that large is unbounded in practice, as asked for.
- Limit read-thread-count, process-thread-count and the cor/cosr pool
size in func.readdir to 64 threads per pool. Apply the cap after
resolving automatic and CPU-divided counts; keep disabled process
pools disabled and preserve the configured strings.
- Log a syslog warning identifying the setting and limit when clamped.
For readdir, warn only when applying a valid concurrent policy,
not during validation.
- Document the fixed cap and warning behavior. Queue depths retain
their separate limits and use the clamped thread count.
- Resolve negative FUSE counts without overflowing on INT_MIN.
Document that both readdir inputs must fit in int and that a queue
depth whose product with the resolved thread count exceeds INT_MAX
is rejected, not clamped.