RDMA/qedr: Fix QP state initialization race
authorKalderon, Michal <Michal.Kalderon@cavium.com>
Wed, 21 Mar 2018 12:51:52 +0000 (14:51 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 21 Mar 2018 20:38:41 +0000 (14:38 -0600)
commitcaf61b1b8b88ccf1451f7321a176393797e8d292
tree2bbf4775dc0bf47a33ff223ed051b8d430ed0cd2
parentb15606f47b89b0b09936d7f45b59ba6275527041
RDMA/qedr: Fix QP state initialization race

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>
drivers/infiniband/hw/qedr/verbs.c