diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2018-02-28 15:30:44 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2018-04-10 16:06:22 -0400 |
commit | 9e679d5e7660eb3e75255a4f583d44789ad1b743 (patch) | |
tree | 1bbf74e1c963cc10ca3178b8a6ec86f1cf3312a4 /net/openvswitch | |
parent | 8a14793e7aa718d16382e18cadec92e2e531e62a (diff) | |
download | linux-9e679d5e7660eb3e75255a4f583d44789ad1b743.tar.bz2 |
xprtrdma: ->send_request returns -EAGAIN when there are no free MRs
Currently, when the MR free list is exhausted during marshaling, the
RPC/RDMA transport places the RPC task on the delayq, which forces a
wait for HZ >> 2 before the marshal and send is retried.
With this change, the transport now places such an RPC task on the
pending queue, and wakes it just as soon as more MRs have been
created. Creating more MRs typically takes less than a millisecond,
and this waking mechanism is less deadlock-prone.
Moreover, the waiting RPC task is holding the transport's write
lock, which blocks the transport from sending RPCs. Therefore faster
recovery from MR exhaustion is desirable.
This is the same mechanism that the TCP transport utilizes when
handling write buffer space exhaustion.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/openvswitch')
0 files changed, 0 insertions, 0 deletions