android_kernel_xiaomi_sm7250/net
NeilBrown c6b0a9f87b [PATCH] knfsd: tidy up up meaning of 'buffer size' in nfsd/sunrpc
There is some confusion about the meaning of 'bufsz' for a sunrpc server.
In some cases it is the largest message that can be sent or received.  In
other cases it is the largest 'payload' that can be included in a NFS
message.

In either case, it is not possible for both the request and the reply to be
this large.  One of the request or reply may only be one page long, which
fits nicely with NFS.

So we remove 'bufsz' and replace it with two numbers: 'max_payload' and
'max_mesg'.  Max_payload is the size that the server requests.  It is used
by the server to check the max size allowed on a particular connection:
depending on the protocol a lower limit might be used.

max_mesg is the largest single message that can be sent or received.  It is
calculated as the max_payload, rounded up to a multiple of PAGE_SIZE, and
with PAGE_SIZE added to overhead.  Only one of the request and reply may be
this size.  The other must be at most one page.

Cc: Greg Banks <gnb@sgi.com>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-10-06 08:53:41 -07:00
..
802
8021q
appletalk
atm Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
ax25
bluetooth [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
bridge [NETFILTER]: ebt_mark: add or/and/xor action support to mark target 2006-10-04 00:30:57 -07:00
core Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/configh 2006-10-04 09:59:57 -07:00
dccp
decnet
econet
ethernet
ieee80211
ipv4 [XFRM]: BEET mode 2006-10-04 00:31:09 -07:00
ipv6 Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/configh 2006-10-04 09:59:57 -07:00
ipx
irda [PATCH] const struct tty_operations 2006-10-02 07:57:14 -07:00
key
lapb
llc
netfilter [NETFILTER]: Kconfig: fix xt_physdev dependencies 2006-10-04 00:30:53 -07:00
netlabel
netlink
netrom
packet
rose
rxrpc [PATCH] kmemdup: some users 2006-10-01 00:39:19 -07:00
sched [NET_SCHED]: Remove old estimator implementation 2006-10-04 00:31:07 -07:00
sctp [SCTP]: Do not timestamp every SCTP packet. 2006-09-29 17:10:03 -07:00
sunrpc [PATCH] knfsd: tidy up up meaning of 'buffer size' in nfsd/sunrpc 2006-10-06 08:53:41 -07:00
tipc [TIPC]: fix printk warning 2006-10-04 00:31:03 -07:00
unix
wanrouter
x25
xfrm [XFRM]: BEET mode 2006-10-04 00:31:09 -07:00
compat.c
Kconfig
Makefile
nonet.c
socket.c [PATCH] file: modify struct fown_struct to use a struct pid 2006-10-02 07:57:14 -07:00
sysctl_net.c
TUNABLE