Documentation: note that fuse request timeouts do not apply to virtiofs
Subsystems (2)
PATCH 1/1 Documentation: note that fuse request timeouts do not apply to virtiofs
fs/fuse/default_request_timeout and max_request_timeout are global and stay writable. They arm the timeout for FUSE connections other than virtiofs. virtiofs is the exception, and that exception was introduced by commit '16fabae51accb1057582dcfe758fb1a8a852a07c ("virtiofs: disable request timeout")': the kernel sets fuse_conn::no_req_timeout and never consults these sysctls, because the timeout aborts the connection and frees requests the virtqueue still owns.
The sysctl text describes that abort as applying to a fuse server. Record the virtiofs exception at the end of the section.
Signed-off-by Li Wang <[email protected]>
--- Documentation/admin-guide/sysctl/fs.rst | 7 +++++++ 1 file changed, 7 insertions(+)
Documentation/admin-guide/sysctl/fs.rst +7 -0
@@ -372,3 +372,10 @@ the set timeout elapses, then the connection to the fuse server will be aborted. Please note that the timeouts are not 100% precise (eg you may set 60 seconds but the timeout may kick in after 70 seconds). The upper margin of error for the timeout is roughly FUSE_TIMEOUT_TIMER_FREQ seconds. + +virtiofs does not use these timeouts. The kernel does not offer +``FUSE_REQUEST_TIMEOUT`` and does not arm the timer from either sysctl, +because a timeout aborts the connection while the device still owns the +request. Writing ``default_request_timeout`` or ``max_request_timeout`` +has no effect on a virtiofs mount. Both files remain writable because they +still apply to other FUSE connections.
Signature · 1 line
2.34.1