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.
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.