Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prov/efa: Use dlist_foreach_container_safe to iterate progressed ep list
Currently, efa_rdm_cq_poll_ibv_cq used dlist_foreach to iterate the eps, which involves the removal of ep's dlist entry. It is recommended to use dlist_foreach_*safe method to have additional tmp variable to store the entry->next pointer before dlist_remove(ep->entry). Though Libfabric's current dlist implementation doesn't really destroy ep->entry in dlist_remove, it may cause use-after-free error when the behavior changes in the future. Signed-off-by: Shi Jin <sjina@amazon.com>
- Loading branch information