From 715c4c7ebefcbe510e4f67fd3a7d27c38926d1a7 Mon Sep 17 00:00:00 2001 From: eeb Date: Tue, 28 Jun 2005 09:43:53 +0000 Subject: [PATCH] * vibnal: ensure FMR is flushed on error --- lnet/klnds/viblnd/viblnd_cb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lnet/klnds/viblnd/viblnd_cb.c b/lnet/klnds/viblnd/viblnd_cb.c index 854972f..db89c41 100644 --- a/lnet/klnds/viblnd/viblnd_cb.c +++ b/lnet/klnds/viblnd/viblnd_cb.c @@ -36,7 +36,8 @@ kibnal_tx_done (kib_tx_t *tx) 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) */ @@ -184,7 +185,7 @@ kibnal_post_rx (kib_rx_t *rx, int credit) 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++; -- 1.8.3.1