Skip to contentSkip to conversation

Documentation: note that fuse request timeouts do not apply to virtiofs

PATCH New Li Wang 1 participant 1 message Nov 23

Subsystems (2)
lore
Share & tools
lore

Li Wang

author
#0 lore raw

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.

---
 Documentation/admin-guide/sysctl/fs.rst | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/admin-guide/sysctl/fs.rst +7 -0
index 9b7f65c3efd8..e7ac4a38ab3e 100644
@@ -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