From 4f8dfaa90bddff3e0d094f292764f1d1690f6ec9 Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Tue, 4 Sep 2012 16:17:24 +0530 Subject: fuse: make background queue length configurable * also make 'congestion_threshold' an option * make 'congestion_threshold' as 75% of background queue length if not explicitely specified * in glusterfsd.c, moved all the fuse option dictionary setting code to separate function Change-Id: Ie1680eefaed9377720770a09222282321bd4132e Signed-off-by: Amar Tumballi BUG: 845214 Reviewed-on: https://code.engineering.redhat.com/gerrit/1860 Reviewed-by: Vijay Bellur Tested-by: Vijay Bellur --- xlators/mount/fuse/src/fuse-bridge.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/mount/fuse/src/fuse-bridge.h') diff --git a/xlators/mount/fuse/src/fuse-bridge.h b/xlators/mount/fuse/src/fuse-bridge.h index f9d897c3037..d5b57e068df 100644 --- a/xlators/mount/fuse/src/fuse-bridge.h +++ b/xlators/mount/fuse/src/fuse-bridge.h @@ -122,6 +122,10 @@ struct fuse_private { /* For communicating with separate mount thread. */ int status_pipe[2]; + + /* for fuse queue length and congestion threshold */ + int background_qlen; + int congestion_threshold; }; typedef struct fuse_private fuse_private_t; -- cgit