Fix a threading issue
Remove some unneeded UNLIKELYs This commit was SVN r30138.
Этот коммит содержится в:
родитель
b3edca19df
Коммит
dbcc53bc6f
@ -47,7 +47,7 @@ ompi_mtl_portals4_cancel(struct mca_mtl_base_module_t* mtl,
|
||||
|
||||
if (PTL_INVALID_HANDLE != recvreq->me_h) {
|
||||
ret = PtlMEUnlink(recvreq->me_h);
|
||||
if (OPAL_UNLIKELY(PTL_OK == ret)) {
|
||||
if (PTL_OK == ret) {
|
||||
recvreq->super.super.ompi_req->req_status._cancelled = true;
|
||||
recvreq->super.super.completion_callback(&recvreq->super.super);
|
||||
}
|
||||
|
@ -360,7 +360,7 @@ ompi_mtl_portals4_irecv(struct mca_mtl_base_module_t* mtl,
|
||||
ptl_request->super.type = portals4_req_recv;
|
||||
ptl_request->super.event_callback = ompi_mtl_portals4_recv_progress;
|
||||
#if OPAL_ENABLE_DEBUG
|
||||
ptl_request->opcount = ++ompi_mtl_portals4.recv_opcount;
|
||||
ptl_request->opcount = OPAL_THREAD_ADD64((int64_t*) &ompi_mtl_portals4.recv_opcount, 1);
|
||||
ptl_request->hdr_data = 0;
|
||||
#endif
|
||||
ptl_request->buffer_ptr = (free_after) ? start : NULL;
|
||||
|
@ -438,7 +438,7 @@ ompi_mtl_portals4_send_start(struct mca_mtl_base_module_t* mtl,
|
||||
pending->proc = proc;
|
||||
pending->ptl_request = ptl_request;
|
||||
|
||||
if (OPAL_THREAD_ADD32(&ompi_mtl_portals4.flowctl.send_slots, -1) < 0) {
|
||||
if (OPAL_UNLIKELY(OPAL_THREAD_ADD32(&ompi_mtl_portals4.flowctl.send_slots, -1) < 0)) {
|
||||
OPAL_THREAD_ADD32(&ompi_mtl_portals4.flowctl.send_slots, 1);
|
||||
opal_list_append(&ompi_mtl_portals4.flowctl.pending_sends,
|
||||
&pending->super.super);
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user