]> git.ipfire.org Git - thirdparty/linux.git/commit
svcrdma: Reserve an extra WQE for ib_drain_rq()
authorChuck Lever <chuck.lever@oracle.com>
Sun, 4 Feb 2024 23:16:37 +0000 (18:16 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 1 Mar 2024 14:12:25 +0000 (09:12 -0500)
commite67792cc96ef8e98364f509a25a6392a7c962f90
treeae4a07c353f2a9609f18bab5cf9d67a64c8f1b49
parentc8004c1ca442d99a7afdcc4238c7e6eeb30c214b
svcrdma: Reserve an extra WQE for ib_drain_rq()

Do as other ULPs already do: ensure there is an extra Receive WQE
reserved for the tear-down drain WR. I haven't heard reports of
problems but it can't hurt.

Note that rq_depth is used to compute the Send Queue depth as well,
so this fix should affect both the SQ and RQ.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/xprtrdma/svc_rdma_transport.c