]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Refactor initialization of ep->rep_max_requests
authorChuck Lever <chuck.lever@oracle.com>
Fri, 3 Jan 2020 16:56:37 +0000 (11:56 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:54:32 +0000 (10:54 -0500)
commit360ee01dadb6a6f2e3a89563e0f7a672b5deb8f4
tree08ad8fa4bed95f40ba125c3739a079aa67f858f5
parentb743e9e0c110c2d66e5f9344e21eaf6594c766d9
xprtrdma: Refactor initialization of ep->rep_max_requests

Clean up: there is no need to keep two copies of the same value.
Also, in subsequent patches, rpcrdma_ep_create() will be called in
the connect worker rather than at set-up time.

Minor fix: Initialize the transport's sendctx to the value based on
the capabilities of the underlying device, not the maximum setting.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/rpc_rdma.c
net/sunrpc/xprtrdma/transport.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h