Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b7e85fff authored by Chuck Lever's avatar Chuck Lever Committed by Anna Schumaker
Browse files

xprtrdma: Remove arbitrary limit on initiator depth



Clean up: We need to check only that the value does not exceed the
range of the u8 field it's going into.

Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 6720a899
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -589,11 +589,8 @@ rpcrdma_ep_create(struct rpcrdma_ep *ep, struct rpcrdma_ia *ia,

	/* Client offers RDMA Read but does not initiate */
	ep->rep_remote_cma.initiator_depth = 0;
	if (ia->ri_device->attrs.max_qp_rd_atom > 32)	/* arbitrary but <= 255 */
		ep->rep_remote_cma.responder_resources = 32;
	else
	ep->rep_remote_cma.responder_resources =
						ia->ri_device->attrs.max_qp_rd_atom;
		min_t(int, U8_MAX, ia->ri_device->attrs.max_qp_rd_atom);

	/* Limit transport retries so client can detect server
	 * GID changes quickly. RPC layer handles re-establishing