linux-rdma / perftest

Infiniband Verbs Performance Tests
Other
536 stars 273 forks source link

Fix issue with PD deallocation. #215

Closed pim-pesochek closed 1 year ago

pim-pesochek commented 1 year ago

Issue: When send_rcredit flag is set to 1 then credit_mr, ctrl_buf, ctrl_sge_list and ctrl_wr are allocated. However all these entities are deallocated under additional conditions, like work_rdma_cm == ON. This is not always true, ib_send_bw can be run without rdma cm and that leads to error message during PD deallocation: "Failed to deallocate PD - Device or resource busy"

Fix: If send_rcredit flag was used during entities creation it is also used during deallocation without additional conditions.