infiniband:core:Fix assumation that the function ib_send_cm_drep never fails in rdma_disconnect
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines
This fixes the incorrect assumation that the function
ib_send_cm_drepalways runs successfully and never fails in the functionrdma_disconnectby making this call be assigned the variable used to return to callers ofrdma_disconnectin 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