diff options
| author | Chuck Lever <cel@kernel.org> | 2026-08-28 09:50:34 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-10-04 21:15:29 -0400 |
| commit | b7037e5da3fb81abcd6309daecb112f1d5926760 (patch) | |
| tree | 52e93323d40a52ebcde575d95ec8345db1c93237 /scripts | |
| parent | 5336899b5491eaa2ac22c2925d87daab2b140eb3 (diff) | |
svcrdma: Grant credits from the clamped sc_max_requests
svc_rdma_accept() computes sc_fc_credits from sc_max_requests before
the Receive Queue depth is checked against the device's max_qp_wr.
When that check lowers sc_max_requests, the credit grant keeps the
original value, so the server advertises more credits than it has
Receives posted. A client that uses the full grant overruns the
Receive Queue, and the connection is lost with an RNR error.
Set sc_fc_credits after the clamp so the grant matches the number
of Receives the server posts.
Fixes: fc2e69db82c1 ("svcrdma: Clean up comment in svc_rdma_accept()")
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260828135036.796842-2-cel@kernel.org
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
