diff options
author | Simon Derr <simon.derr@bull.net> | 2013-06-21 15:32:39 +0200 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@gmail.com> | 2013-07-07 22:02:29 -0500 |
commit | fd453d0ed6c1dacef8eff466df473d62d63db1e9 (patch) | |
tree | d1858110c400fc20cf403e2798a5a3d1546dcbaf /include/linux/tpm_command.h | |
parent | 47229ff85e5a0b0613df2288d212938aeb9687da (diff) | |
download | talos-obmc-linux-fd453d0ed6c1dacef8eff466df473d62d63db1e9.tar.gz talos-obmc-linux-fd453d0ed6c1dacef8eff466df473d62d63db1e9.zip |
9P/RDMA: Use a semaphore to protect the RQ
The current code keeps track of the number of buffers posted in the RQ,
and will prevent it from overflowing. But it does so by simply dropping
post requests (And leaking memory in the process).
When this happens there will actually be too few buffers posted, and
soon the 9P server will complain about 'RNR retry counter exceeded'
errors.
Instead, use a semaphore, and block until the RQ is ready for another
buffer to be posted.
Signed-off-by: Simon Derr <simon.derr@bull.net>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'include/linux/tpm_command.h')
0 files changed, 0 insertions, 0 deletions