zrlio / disni

DiSNI: Direct Storage and Networking Interface
Apache License 2.0
186 stars 66 forks source link

Fixed propagation of return values for some verb calls #5

Closed yuvaldeg closed 7 years ago

yuvaldeg commented 7 years ago

Fixed some tear down handling of QPs, CM IDs, as well as other components which didn't have their return value propagated properly.

For QPs and CM IDs, the CM ID was improperly removed from the map in case of rdma_disconnect() and rdma_destroy_qp(). Instead, the code now removes the CM_ID only when it is destroyed, and removes the QP from the map upon rdma_destroy_qp().

patrickstuedi commented 7 years ago

Thanks!