Document "congestion_threshold" parameter.
authorNikolaus Rath <Nikolaus@rath.org>
Wed, 16 Nov 2016 19:28:42 +0000 (11:28 -0800)
committerNikolaus Rath <Nikolaus@rath.org>
Wed, 16 Nov 2016 19:30:05 +0000 (11:30 -0800)
Fixes #96.

Thanks to Maxim Patlasov <mpatlasov@virtuozzo.com> for help!

include/fuse_common.h

index dc190837b5c03448fc9c65e50a935092e71273d2..a906bc5280e244a57f8c743648c8be3defa1738f 100644 (file)
@@ -288,10 +288,12 @@ struct fuse_conn_info {
        unsigned max_background;
 
        /**
-        * Kernel congestion threshold parameter.  If you want to
-        * know what this means, please refer to the kernel source
-        * (and, ideally, submit a brief explanation that can be
-        * included here).
+        * Kernel congestion threshold parameter. If the number of pending
+        * background requests exceeds this number, the FUSE kernel module will
+        * mark the filesystem as "congested". This instructs the kernel to
+        * expect that queued requests will take some time to complete, and to
+        * adjust its algorithms accordingly (e.g. by putting a waiting thread
+        * to sleep instead of using a busy-loop).
         */
        unsigned congestion_threshold;