OSDN Git Service

net/rds: Set fr_state only to FRMR_IS_FREE if IB_WR_LOCAL_INV had been successful
authorGerd Rausch <gerd.rausch@oracle.com>
Tue, 16 Jul 2019 22:29:12 +0000 (15:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jul 2019 19:06:52 +0000 (12:06 -0700)
commit9547dff1085d5935d6070377023096821033e30c
treed4ef0c90a0cc78c5012bec93af8111044723456c
parentaea01a2234d26ffa9d9ee01e43705824c0c7b08a
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 <gerd.rausch@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib_frmr.c