From: Steve Wise Date: Tue, 23 Sep 2014 22:11:22 +0000 (-0500) Subject: svcrdma: advertise the correct max payload X-Git-Tag: fixes-for-v3.18-merge-window~9^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e5be28827bf5c1989218c4b7bf64fdbc3d679b5;p=pandora-kernel.git svcrdma: advertise the correct max payload Svcrdma currently advertises 1MB, which is too large. The correct value is the minimum of RPCSVC_MAXPAYLOAD and the max scatter-gather allowed in an NFSRDMA IO chunk * the host page size. This bug is usually benign because the Linux X64 NFSRDMA client correctly limits the payload size to the correct value (64*4096 = 256KB). But if the Linux client is PPC64 with a 64KB page size, then the client will indeed use a payload size that will overflow the server. Signed-off-by: Steve Wise Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed