RDMA/qedr: Fix QP state initialization race
authorKalderon, Michal <Michal.Kalderon@cavium.com>
Wed, 21 Mar 2018 12:51:52 +0000 (14:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:18 +0000 (07:52 +0200)
commitf8d93c59c78cc925f542f22d5388473f69005840
tree2342efa307959ba6c48252a287eff149c7f6fec9
parent8ed753eee9bdf091a2ca2541451b42717de7e781
RDMA/qedr: Fix QP state initialization race

[ Upstream commit caf61b1b8b88ccf1451f7321a176393797e8d292 ]

Once the FW is transitioned to error, FLUSH cqes can be received.
We want the driver to be aware of the fact that QP is already in error.

Without this fix, a user may see false error messages in the dmesg log,
mentioning that a FLUSH cqe was received while QP is not in error state.

Fixes: cecbcddf ("qedr: Add support for QP verbs")
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Ariel Elior <Ariel.Elior@cavium.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/qedr/verbs.c