Skip to content

Commit

Permalink
Always OBJ_DESTRUCT the send request.
Browse files Browse the repository at this point in the history
  • Loading branch information
bosilca committed Oct 30, 2014
1 parent 491830b commit 924d39e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ompi/mca/pml/ob1/pml_ob1_isend.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,14 +234,12 @@ int mca_pml_ob1_send(void *buf,
PERUSE_SEND);

MCA_PML_OB1_SEND_REQUEST_START_W_SEQ(sendreq, endpoint, seqn, rc);
if (rc != OMPI_SUCCESS) {
return rc;
}

ompi_request_wait_completion(&sendreq->req_send.req_base.req_ompi);
if (OPAL_UNLIKELY(rc == OMPI_SUCCESS)) {

This comment has been minimized.

Copy link
@jsquyres

jsquyres Oct 30, 2014

Member

@bosilca Shouldn't this be OPAL_LIKELY?

ompi_request_wait_completion(&sendreq->req_send.req_base.req_ompi);

rc = sendreq->req_send.req_base.req_ompi.req_status.MPI_ERROR;
MCA_PML_BASE_SEND_REQUEST_FINI(&sendreq->req_send);
rc = sendreq->req_send.req_base.req_ompi.req_status.MPI_ERROR;
MCA_PML_BASE_SEND_REQUEST_FINI(&sendreq->req_send);
}
OBJ_DESTRUCT(sendreq);

return rc;
Expand Down

1 comment on commit 924d39e

@bosilca
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, more likely.

Please sign in to comment.