net/rds: Set fr_state only to FRMR_IS_FREE if IB_WR_LOCAL_INV had been successful
Subsystems (4)
PATCH v3 5/7 net/rds: Set fr_state only to FRMR_IS_FREE if IB_WR_LOCAL_INV had been successful
Fix a bug where fr_state first goes to FRMR_IS_STALE, because of a failure of operation IB_WR_LOCAL_INV, but then gets set back to "FRMR_IS_FREE" uncoditionally, even though the operation failed.
Signed-off-by Gerd Rausch <[email protected]>
--- net/rds/ib_frmr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
net/rds/ib_frmr.c +2 -1
@@ -309,7 +309,8 @@ void rds_ib_mr_cqe_handler(struct rds_ib_connection *ic, struct ib_wc *wc) }if (frmr->fr_inv) { - frmr->fr_state =FRMR_IS_FREE ; +if (frmr->fr_state ==FRMR_IS_INUSE ) + frmr->fr_state =FRMR_IS_FREE ; frmr->fr_inv = false;wake_up (&frmr->fr_inv_done); }
Signature · 1 line
2.22.0
Quoted 6 lines · Gerd Rausch
Fix a bug where
fr_statefirst goes toFRMR_IS_STALE, because of a failure of operationIB_WR_LOCAL_INV, but then gets set back to "FRMR_IS_FREE" uncoditionally, even though the operation failed.Signed-off-by Gerd Rausch <[email protected]>---