LASSERT (!tx->tx_waiting); /* mustn't be awaiting peer response */
#if IBNAL_USE_FMR
- if (tx->tx_md.md_fmrcount == 0) {
+ if (tx->tx_md.md_fmrcount == 0 ||
+ ptlrc != PTL_OK) {
vv_return_t vvrc;
/* mapping must be active (it dropped fmrcount to 0) */
conn->ibc_qp, &rx->rx_wrq);
spin_unlock(&conn->ibc_lock);
- if (vvrc == 0) {
+ if (vvrc == vv_return_ok) {
if (credit) {
spin_lock(&conn->ibc_lock);
conn->ibc_outstanding_credits++;