]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit67a5d5a4216ae36fbec95b18fd91d1364ca4e812
treed4ef0c90a0cc78c5012bec93af8111044723456c
parent44db7b93deb2054c52f0d708a72157aad41ede79
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