summaryrefslogtreecommitdiff
path: root/arch/x86/boot
diff options
context:
space:
mode:
authorSteve Wise <swise@opengridcomputing.com>2017-11-28 00:16:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-20 12:10:21 +0300
commit2d8262155ab3d20219ca5815f65573592d717c3a (patch)
treede4b1cd42412aa6c4d086c424a9d442b8841d613 /arch/x86/boot
parent7dd1362247ebfe06ab1f58d7fee739c5f773a0ac (diff)
downloadlinux-2d8262155ab3d20219ca5815f65573592d717c3a.tar.xz
iw_cxgb4: only insert drain cqes if wq is flushed
commit c058ecf6e455fac7346d46197a02398ead90851f upstream. Only insert our special drain CQEs to support ib_drain_sq/rq() after the wq is flushed. Otherwise, existing but not yet polled CQEs can be returned out of order to the user application. This can happen when the QP has exited RTS but not yet flushed the QP, which can happen during a normal close (vs abortive close). In addition never count the drain CQEs when determining how many CQEs need to be synthesized during the flush operation. This latter issue should never happen if the QP is properly flushed before inserting the drain CQE, but I wanted to avoid corrupting the CQ state. So we handle it and log a warning once. Fixes: 4fe7c2962e11 ("iw_cxgb4: refactor sq/rq drain logic") Signed-off-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/x86/boot')
0 files changed, 0 insertions, 0 deletions