mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
RDMA/ucma: Avoid sending reject if backlog is full
Change the returned error code to ENOMEM if the connection event backlog is full. This prevents the ib_cm from issuing a reject on the connection, which can allow retries to succeed. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
This commit is contained in:
parent
e64518f373
commit
3492856e33
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ static int ucma_event_handler(struct rdma_cm_id *cm_id,
|
|||
mutex_lock(&ctx->file->mut);
|
||||
if (event->event == RDMA_CM_EVENT_CONNECT_REQUEST) {
|
||||
if (!ctx->backlog) {
|
||||
ret = -EDQUOT;
|
||||
ret = -ENOMEM;
|
||||
kfree(uevent);
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue