Skip to content

Commit

Permalink
UCT/WAKEUP: fix hang when using polling fd openucx#1492
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-leksikov committed Jun 4, 2017
1 parent a326dc3 commit 7e8f2da
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/uct/ib/base/ib_iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -866,11 +866,6 @@ ucs_status_t uct_ib_iface_wakeup_arm(uct_wakeup_h wakeup)
ibv_ack_cq_events(iface->recv_cq, recv_cq_count);
}

/* avoid re-arming the interface if any events exists */
if ((send_cq_count > 0) || (recv_cq_count > 0)) {
return UCS_ERR_BUSY;
}

if (wakeup->events & UCT_WAKEUP_TX_COMPLETION) {
status = iface->ops->arm_tx_cq(iface);
if (status != UCS_OK) {
Expand All @@ -885,7 +880,7 @@ ucs_status_t uct_ib_iface_wakeup_arm(uct_wakeup_h wakeup)
}
}

return UCS_OK;
return ((send_cq_count > 0) || (recv_cq_count > 0)) ? UCS_ERR_BUSY : UCS_OK;
}

ucs_status_t uct_ib_iface_wakeup_get_fd(uct_wakeup_h wakeup, int *fd_p)
Expand Down

0 comments on commit 7e8f2da

Please sign in to comment.