From: Sean Hefty Date: Tue, 6 Mar 2007 19:58:32 +0000 (-0800) Subject: RDMA/ucma: Avoid sending reject if backlog is full X-Git-Tag: v2.6.21-rc4~79^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3492856e33da734501f2bdd8656cbfdf61f60330;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Roland Dreier --- diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c index b516b93b85505..c859134c1daa3 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; }