diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2021-04-19 21:03:25 +0300 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-04-26 16:25:43 +0300 |
commit | b3ce7a25f44f03d481d12a17768cfce18b942ec2 (patch) | |
tree | 2c278ab7e6d34938143fefab8808dcc55e765b14 /include/trace | |
parent | 8a053433de00380a9c5758d94c7c2ec2e25321fe (diff) | |
download | linux-b3ce7a25f44f03d481d12a17768cfce18b942ec2.tar.xz |
xprtrdma: Avoid Send Queue wrapping
Send WRs can be signalled or unsignalled. A signalled Send WR
always has a matching Send completion, while a unsignalled Send
has a completion only if the Send WR fails.
xprtrdma has a Send account mechanism that is designed to reduce
the number of signalled Send WRs. This in turn mitigates the
interrupt rate of the underlying device.
RDMA consumers can't leave all Sends unsignaled, however, because
providers rely on Send completions to maintain their Send Queue head
and tail pointers. xprtrdma counts the number of unsignaled Send WRs
that have been posted to ensure that Sends are signalled often
enough to prevent the Send Queue from wrapping.
This mechanism neglected to account for FastReg WRs, which are
posted on the Send Queue but never signalled. As a result, the
Send Queue wrapped on occasion, resulting in duplication completions
of FastReg and LocalInv WRs.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions