Skip to contentSkip to conversation

infiniband:core:Fix assumation that the function ib_send_cm_drep never fails in rdma_disconnect

PATCH Hefty, Sean 1 participant 1 message Sep 8, 2015 1 message not in the archive InfiniBand

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines

This fixes the incorrect assumation that the function ib_send_cm_drep always runs successfully and never fails in the function rdma_disconnect by making this call be assigned the variable used to return to callers of rdma_disconnect in order to make sure that a error code is returned if a failure occurs with this call in order for the caller to handle.

It's not assuming that it doesn't fail. It's saying that it doesn't care that it does. The call to send a DREP is optimistic and correct in most circumstances. The app is done at this point, and the connection has been disconnected.

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html