]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sif: cq: tear-down sequence in cleaning up the SendCQ
authorWei Lin Guay <wei.lin.guay@oracle.com>
Mon, 30 May 2016 07:54:34 +0000 (09:54 +0200)
committerKnut Omang <knut.omang@oracle.com>
Sun, 3 Jul 2016 14:01:37 +0000 (16:01 +0200)
commit54cee3079b1b51b06e66eb9aac559e16eb9d7d29
tree1393166a0344472c5208a1dc1b6c1cbf59940c45
parent36fb906193f1fe9ac3345dd307459abfa91e9fd7
sif: cq: tear-down sequence in cleaning up the SendCQ

This commit ensures that the sif_fixup_cqes for a sendCQ
can only be executed after post_process_wa4074. As the CQE
in a sendCQ cannot be trusted,  walk_and_update CQ must
be performed first.

In a scenario where the post_process_wa4074 and sif_fixup_cqes
are performed concurrently, the post_process_wa4074 is given
priority where no polling of the SendCQ is allowed in
sif_fixup_cqes. Then, post_process_wa4074 will generate
the remaining FLUSH-IN ERR for a Send queue.

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_cq.c
drivers/infiniband/hw/sif/sif_qp.c