RDMA/qedr: Don't reset QP when queues aren't flushed
authorRam Amrani <Ram.Amrani@Cavium.com>
Tue, 24 Jan 2017 11:50:38 +0000 (13:50 +0200)
committerDoug Ledford <dledford@redhat.com>
Tue, 24 Jan 2017 20:34:55 +0000 (15:34 -0500)
commit933e6dcaa0f65eb2f624ad760274020874a1f35e
treed0350d5833e6c50a83563b3fe13c7c98a40e4d2c
parentc78c31496111f497b4a03f955c100091185da8b6
RDMA/qedr: Don't reset QP when queues aren't flushed

Fail QP state transition from error to reset if SQ/RQ are not empty
and still in the process of flushing out the queued work entries.

Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qedr/verbs.c