Skip to content

Commit

Permalink
librdmacm: Do not wait in rdma_accept for UD QPs
Browse files Browse the repository at this point in the history
There are no additional connection events to process for UD QPs
after calling rdma_accept().  When using synchronous rdma_cm_id's,
simply return to the user after sending the reply.  Do not wait
for additional events.

This fixes a hang on the server side when setting up UD QP
communication.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
  • Loading branch information
shefty committed Aug 23, 2011
1 parent 2487fb1 commit 332b203
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cma.c
Original file line number Diff line number Diff line change
Expand Up @@ -1502,6 +1502,9 @@ int rdma_accept(struct rdma_cm_id *id, struct rdma_conn_param *conn_param)
return (ret >= 0) ? ERR(ENODATA) : -1;
}

if (ucma_is_ud_qp(id->qp_type))
return 0;

return ucma_complete(id_priv);
}

Expand Down

0 comments on commit 332b203

Please sign in to comment.