diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2019-08-26 20:12:57 +0300 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2019-08-26 22:45:38 +0300 |
commit | 98ef77d1aaa7a2f4e1b2a721faa084222021fda7 (patch) | |
tree | 76d4f0ed1bd0524c5253d3c28072c766f1e47974 /net/sunrpc/clnt.c | |
parent | f9e1afe0fa729337309fa44921da998d2e6e6198 (diff) | |
download | linux-98ef77d1aaa7a2f4e1b2a721faa084222021fda7.tar.xz |
xprtrdma: Send Queue size grows after a reconnect
Eli Dorfman reports that after a series of idle disconnects, an
RPC/RDMA transport becomes unusable (rdma_create_qp returns
-ENOMEM). Problem was tracked down to increasing Send Queue size
after each reconnect.
The rdma_create_qp() API does not promise to leave its @qp_init_attr
parameter unaltered. In fact, some drivers do modify one or more of
its fields. Thus our calls to rdma_create_qp must use a fresh copy
of ib_qp_init_attr each time.
This fix is appropriate for kernels dating back to late 2007, though
it will have to be adapted, as the connect code has changed over the
years.
Reported-by: Eli Dorfman <eli@vastdata.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
0 files changed, 0 insertions, 0 deletions