]> git.baikalelectronics.ru Git - kernel.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)
commit15d4e21f0ebeef9b27ee94ece23a25856ba8faf4
tree4378991dc23fe5eb5fed1864136621d422978cf7
parentdec2f91bfd8970aa26b1ca7066e6c695ccaa96dd
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