The patch titled SVCRDMA: Fix erroneous BUG_ON in send_write has been added to the -mm tree. Its filename is svcrdma-fix-erroneous-bug_on-in-send_write.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: SVCRDMA: Fix erroneous BUG_ON in send_write From: Tom Tucker <tom@xxxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxx> Signed-off-by: J. Bruce Fields <bfields@xxxxxxxxxxxxxx> Cc: Roland Dreier <rolandd@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- net/sunrpc/xprtrdma/svc_rdma_sendto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN net/sunrpc/xprtrdma/svc_rdma_sendto.c~svcrdma-fix-erroneous-bug_on-in-send_write net/sunrpc/xprtrdma/svc_rdma_sendto.c --- a/net/sunrpc/xprtrdma/svc_rdma_sendto.c~svcrdma-fix-erroneous-bug_on-in-send_write +++ a/net/sunrpc/xprtrdma/svc_rdma_sendto.c @@ -156,7 +156,7 @@ static int send_write(struct svcxprt_rdm struct svc_rdma_op_ctxt *ctxt; int ret = 0; - BUG_ON(sge_count >= 32); + BUG_ON(sge_count > RPCSVC_MAXPAGES); dprintk("svcrdma: RDMA_WRITE rmr=%x, to=%llx, xdr_off=%d, " "write_len=%d, xdr_sge=%p, sge_count=%d\n", rmr, (unsigned long long)to, xdr_off, _ Patches currently in -mm which might be from tom@xxxxxxxxxxxxxxxxxxxxx are svcrdma-add-xprt-refs-to-fix-close-unmount-crash.patch svcrdma-fix-erroneous-bug_on-in-send_write.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html