]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: pqp: Fix potential null pointer exception under high load
authorKnut Omang <knut.omang@oracle.com>
Tue, 19 Jul 2016 07:23:05 +0000 (09:23 +0200)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 27 Jul 2016 17:24:22 +0000 (10:24 -0700)
commitb26983c8bd8a00ce32366c896c34cebcde4aaec8
tree54b315ca2ddb81c7f0f9f5818bf061e7f5628f75
parentff870e6d145e4ee5fb542949670348fc6571fc8e
sif: pqp: Fix potential null pointer exception under high load

If a high number of invalidate requests are posted
without requesting completions, the PQP may run full
enough not to be able to allow a posted req anymore.

To handle this scenario, an additional attempt to send a
synchronous invalidate request was added. Unfortunately
that request ended up being posted with synchronous semantics
but without a handle to handle the completion.

This commit fixes this case by dynamically allocating/freeing
a handle in such situations.

Orabug: 24316139

Signed-off-by: Knut Omang <knut.omang@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
drivers/infiniband/hw/sif/sif_base.c
drivers/infiniband/hw/sif/sif_sq.c