ep_ptr->qp_handle,
ib_get_port_state_str(ep_ptr->qp_state));
+ dapl_os_lock(&ep_ptr->header.lock);
if (( ep_ptr->qp_handle != IB_INVALID_HANDLE ) &&
( ep_ptr->qp_state != DAPL_QP_STATE_UNATTACHED ))
{
qp_handle = ep_ptr->qp_handle;
ep_ptr->qp_handle = IB_INVALID_HANDLE;
ep_ptr->qp_state = DAPL_QP_STATE_UNATTACHED;
- ib_destroy_qp ( qp_handle, NULL /* callback */);
+ ib_destroy_qp ( qp_handle, ib_sync_destroy );
dapl_dbg_log (DAPL_DBG_TYPE_EP, "--> DsQF: freed QP %p\n",
qp_handle );
}
+ dapl_os_unlock(&ep_ptr->header.lock);
return DAT_SUCCESS;
}