diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2007-10-16 23:30:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 08:43:03 -0700 |
commit | f92b99b9dccb61760b345baf40ed37f59b91f8af (patch) | |
tree | 1460ac391186be79beb79a6d4030cc387239681c /fs/fuse/fuse_i.h | |
parent | fdc1ca8abae72c5829e099fd35626b83ecb12666 (diff) | |
download | kernel_samsung_smdk4412-f92b99b9dccb61760b345baf40ed37f59b91f8af.zip kernel_samsung_smdk4412-f92b99b9dccb61760b345baf40ed37f59b91f8af.tar.gz kernel_samsung_smdk4412-f92b99b9dccb61760b345baf40ed37f59b91f8af.tar.bz2 |
fuse: update backing_dev_info congestion state
Set the read and write congestion state if the request queue is close to
blocking, and clear it when it's not.
This prevents unnecessary blocking in readahead and (when writable mmaps are
allowed) writeback.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r-- | fs/fuse/fuse_i.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h index 68ae87c..9f4603b 100644 --- a/fs/fuse/fuse_i.h +++ b/fs/fuse/fuse_i.h @@ -20,7 +20,10 @@ #define FUSE_MAX_PAGES_PER_REQ 32 /** Maximum number of outstanding background requests */ -#define FUSE_MAX_BACKGROUND 10 +#define FUSE_MAX_BACKGROUND 12 + +/** Congestion starts at 75% of maximum */ +#define FUSE_CONGESTION_THRESHOLD (FUSE_MAX_BACKGROUND * 75 / 100) /** It could be as large as PATH_MAX, but would that have any uses? */ #define FUSE_NAME_MAX 1024 |