mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
[PATCH] knfsd: Allow max size of NFSd payload to be configured
The max possible is the maximum RPC payload. The default depends on amount of total memory. The value can be set within reason as long as no nfsd threads are currently running. The value can also be ready, allowing the default to be determined after nfsd has started. Signed-off-by: Neil Brown <neilb@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7adae489fe
commit
596bbe53eb
4 changed files with 54 additions and 3 deletions
|
@ -21,9 +21,9 @@
|
|||
#define NFSSVC_MAXVERS 3
|
||||
|
||||
/*
|
||||
* Maximum blocksize supported by daemon currently at 32K
|
||||
* Maximum blocksizes supported by daemon under various circumstances.
|
||||
*/
|
||||
#define NFSSVC_MAXBLKSIZE (32*1024)
|
||||
#define NFSSVC_MAXBLKSIZE RPCSVC_MAXPAYLOAD
|
||||
/* NFSv2 is limited by the protocol specification, see RFC 1094 */
|
||||
#define NFSSVC_MAXBLKSIZE_V2 (8*1024)
|
||||
|
||||
|
|
|
@ -145,6 +145,7 @@ int nfsd_vers(int vers, enum vers_op change);
|
|||
void nfsd_reset_versions(void);
|
||||
int nfsd_create_serv(void);
|
||||
|
||||
extern int nfsd_max_blksize;
|
||||
|
||||
/*
|
||||
* NFSv4 State
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue