]> git.karo-electronics.de Git - karo-tx-linux.git/commit
svcrdma: Avoid Send Queue overflow
authorChuck Lever <chuck.lever@oracle.com>
Fri, 23 Jun 2017 21:17:24 +0000 (17:17 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 28 Jun 2017 18:21:43 +0000 (14:21 -0400)
commit107c1d0a991abe632a051de697c5acc33c03fd96
treef9d870d640b0b26e53daee63e18918dc1680d221
parent91a08eae7979417bf10c98f149c6ea28e6632114
svcrdma: Avoid Send Queue overflow

Sanity case: Catch the case where more Work Requests are being
posted to the Send Queue than there are Send Queue Entries.

This might happen if a client sends a chunk with more segments than
there are SQEs for the transport. The server can't send that reply,
so the transport will deadlock unless the client drops the RPC.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/xprtrdma/svc_rdma_rw.c
net/sunrpc/xprtrdma/svc_rdma_sendto.c