]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
xprtrdma: Cap size of callback buffer resources
authorChuck Lever <chuck.lever@oracle.com>
Tue, 29 Nov 2016 15:52:08 +0000 (10:52 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 29 Nov 2016 21:45:44 +0000 (16:45 -0500)
commit62aee0e3028614588a14e19979cd3f7b97948505
tree4378991dc23fe5eb5fed1864136621d422978cf7
parente5517c2a5a49ed5e99047008629f1cd60246ea0e
xprtrdma: Cap size of callback buffer resources

When the inline threshold size is set to large values (say, 32KB)
any NFSv4.1 CB request from the server gets a reply with status
NFS4ERR_RESOURCE.

Looks like there are some upper layer assumptions about the maximum
size of a reply (for example, in process_op). Cap the size of the
NFSv4 client's reply resources at a page.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/backchannel.c