diff options
author | Sean Hefty <sean.hefty@intel.com> | 2007-03-06 20:58:32 +0100 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-03-06 23:58:11 +0100 |
commit | 3492856e33da734501f2bdd8656cbfdf61f60330 (patch) | |
tree | e885421fe21182c5f3cffb816883985894251bc5 /drivers | |
parent | RDMA/cxgb3: Fix MR permission problems (diff) | |
download | linux-3492856e33da734501f2bdd8656cbfdf61f60330.tar.xz linux-3492856e33da734501f2bdd8656cbfdf61f60330.zip |
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 b516b93b8550..c859134c1daa 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; } |