From 8b2a7f59b3d07fb82f7df8fa8efd7ff38700e60d Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Wed, 23 Jun 2010 08:33:32 +0000 Subject: * Make the number of max background requests and congestion threshold tunable. --- include/fuse_common.h | 12 +++++++++++- include/fuse_kernel.h | 6 ++++-- 2 files changed, 15 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/fuse_common.h b/include/fuse_common.h index c547ac8..70304c3 100644 --- a/include/fuse_common.h +++ b/include/fuse_common.h @@ -159,10 +159,20 @@ struct fuse_conn_info { */ unsigned want; + /** + * Maximum number of backgrounded requests + */ + unsigned max_background; + + /** + * Kernel congestion threshold parameter + */ + unsigned congestion_threshold; + /** * For future use. */ - unsigned reserved[25]; + unsigned reserved[23]; }; struct fuse_session; diff --git a/include/fuse_kernel.h b/include/fuse_kernel.h index bd73630..6f9b9b5 100644 --- a/include/fuse_kernel.h +++ b/include/fuse_kernel.h @@ -66,6 +66,7 @@ #define __s64 int64_t #define __u32 uint32_t #define __s32 int32_t +#define __u16 uint16_t /* * Version negotiation: @@ -91,7 +92,7 @@ #define FUSE_KERNEL_VERSION 7 /** Minor version number of this interface */ -#define FUSE_KERNEL_MINOR_VERSION 12 +#define FUSE_KERNEL_MINOR_VERSION 13 /** The node ID of the root inode */ #define FUSE_ROOT_ID 1 @@ -477,7 +478,8 @@ struct fuse_init_out { __u32 minor; __u32 max_readahead; __u32 flags; - __u32 unused; + __u16 max_background; + __u16 congestion_threshold; __u32 max_write; }; -- cgit v1.2.3