]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - fs/nfs/nfs4proc.c
nfs41: fix session fore channel negotiation
authorAndy Adamson <andros@netapp.com>
Tue, 15 Dec 2009 17:55:02 +0000 (12:55 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 15 Dec 2009 18:58:42 +0000 (13:58 -0500)
commit68bf05efb7facbcf4a7b8d6b48a0800a90895511
tree200e0a6b376bda123adc1b1b13d148f8bba0b896
parenta5523b84c40d34d2c30b45096fbb099b98e4b5a3
nfs41: fix session fore channel negotiation

If the rsize or wsize is not set on the mount command, negotiate the highest
supported rsize and wsize in session creation.

Fixes a bug where the client negotiated nfs41_maxwrite_overhead as
ca_maxrequestsize and nfs41_maxread_overhead as ca_maxresponsesize resulting
in NFS4ERR_REQ_TOO_BIG errors on writes.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c