]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: sq/rq: Do not generate completion if target CQ is full
authorWei Lin Guay <wei.lin.guay@oracle.com>
Fri, 5 Aug 2016 13:02:07 +0000 (15:02 +0200)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 12 Aug 2016 19:18:11 +0000 (12:18 -0700)
commit9745683626e951ef513b95769f937cfbba2f3b3e
tree6859041fc3ae1c4d7e2c28be69416658ba1fcd6f
parent9ea10ec37de3bd29a8aef23b1c2398065879bc3e
sif: sq/rq: Do not generate completion if target CQ is full

Orabug: 24378690

SIF driver needs to generate FLUSHED-IN-ERR completions using pqp
during the QP tear down phase. Neverthelss, a faulty application or an
application that does not rely on the completion (e.g ibv_*pingpong)
might cause pqp to generate completion to a full CQ. Consequently, the
pqp transitions to ERR state, and this will eventually cause the
system to crash.  This patch checks for this scenario to prevent
system crash.

Signed-off-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Knut Omang <knut.omang@oracle.com>
drivers/infiniband/hw/sif/sif_r3.c
drivers/infiniband/hw/sif/sif_rq.c