diff options
author | Sean Hefty <sean.hefty@intel.com> | 2007-03-06 11:58:32 -0800 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-03-06 14:58:11 -0800 |
commit | 3492856e33da734501f2bdd8656cbfdf61f60330 (patch) | |
tree | e885421fe21182c5f3cffb816883985894251bc5 /drivers | |
parent | e64518f3736971f22d5c22a6bab40891d2db337f (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/core/ucma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c index b516b93b855..c859134c1da 100644 --- a/drivers/infiniband/core/ucma.c +++ b/drivers/infiniband/core/ucma.c @@ -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; } |