ofiwg / libfabric

Open Fabric Interfaces

Home Page:http://libfabric.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prov/shm: HMEM async copy path does double copy

zachdworkin opened this issue · comments

Describe the bug
In smr_progres_ipc if there is an async copy requested the function will do a smr_ipc_async_copy call and then fall into the code below where it does either a ofi_copy_from_hmem_iov or an ofi_copy_to_hmem_iov. This should probably just return smr_ipc_async_copy instead of save the ret.

To Reproduce
Found while diagnosing error paths for a new protocol

Expected behavior
Just do the one copy and then close the fd on the other side

Output
Found while diagnosing error paths for a new protocol

Environment:
N/A

Additional context
None

Issue not seen upstream, false report, my fault!