]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
RDMA/ucma: Avoid sending reject if backlog is full
authorSean Hefty <sean.hefty@intel.com>
Tue, 6 Mar 2007 19:58:32 +0000 (11:58 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 6 Mar 2007 22:58:11 +0000 (14:58 -0800)
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>
drivers/infiniband/core/ucma.c

index b516b93b85505b5a243a88ad00a670defab4c452..c859134c1daa3a0d73306f517bebc1c3920a949d 100644 (file)
@@ -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;
                }