svcrdma: send_write() must not overflow the device's max sge
authorSteve Wise <swise@opengridcomputing.com>
Wed, 9 Jul 2014 18:49:15 +0000 (13:49 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 11 Jul 2014 19:03:48 +0000 (15:03 -0400)
commit255942907e7ff498ab1545b5edce5690833ff640
treea10154fa4de9d81f2bfcf0020b1d8c3c5b48e690
parenta46cb7f2878d22b5df190970416cea40982ec2fb
svcrdma: send_write() must not overflow the device's max sge

Function send_write() must stop creating sges when it reaches the device
max and return the amount sent in the RDMA Write to the caller.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xprtrdma/svc_rdma_sendto.c