SVCRDMA: Fix erroneous BUG_ON in send_write

The assertion that checks for sge context overflow is
incorrectly hard-coded to 32. This causes a kernel bug
check when using big-data mounts. Changed the BUG_ON to
use the computed value RPCSVC_MAXPAGES.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by Tom Tucker and committed by Linus Torvalds 3fedb3c5 c48cbb40

+1 -1
+1 -1
net/sunrpc/xprtrdma/svc_rdma_sendto.c
··· 156 struct svc_rdma_op_ctxt *ctxt; 157 int ret = 0; 158 159 - BUG_ON(sge_count >= 32); 160 dprintk("svcrdma: RDMA_WRITE rmr=%x, to=%llx, xdr_off=%d, " 161 "write_len=%d, xdr_sge=%p, sge_count=%d\n", 162 rmr, (unsigned long long)to, xdr_off,
··· 156 struct svc_rdma_op_ctxt *ctxt; 157 int ret = 0; 158 159 + BUG_ON(sge_count > RPCSVC_MAXPAGES); 160 dprintk("svcrdma: RDMA_WRITE rmr=%x, to=%llx, xdr_off=%d, " 161 "write_len=%d, xdr_sge=%p, sge_count=%d\n", 162 rmr, (unsigned long long)to, xdr_off,