Manage cloned /dev/fuse fds in sessions

- Store cloned read-worker fds on fuse_session and close them there.
- Set up clone fallback through session helpers used by the loop.
- Carry per-request fds through receive, process, and reply paths.

Tests show significant performance increases in highly concurrent
workloads on a high core count system. Upto 15% better on reads and
27% on writes.
This commit is contained in:
Antonio SJ Musumeci 2026-05-14 07:53:15 -05:00 • committed by trapexit
parent 5f7fa17ad8
commit 7ec6f8e2f2
5 changed files with 162 additions and 33 deletions

View file

@ -10,6 +10,7 @@ struct fuse_req_t
{
fuse_req_ctx_t ctx;
struct fuse_session *se;
int fd;
fuse_conn_info_t conn;
unsigned int ioctl_64bit : 1;
};