]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
IB/mlx5: Fix outstanding_pi index for GSI qps
authorPrabhath Sajeepa <psajeepa@purestorage.com>
Fri, 13 Dec 2019 00:11:29 +0000 (17:11 -0700)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 17 Feb 2020 11:07:03 +0000 (12:07 +0100)
commit25be709575b7e5f9c7df650cf0027f2cd670095c
treeb5d30508b9e5ba7b87d392b953def3735d9103a3
parentb274ec0de13b5fa990f388c3c6f95e4234eb5a2f
IB/mlx5: Fix outstanding_pi index for GSI qps

BugLink: https://bugs.launchpad.net/bugs/1863588
commit b5671afe5e39ed71e94eae788bacdcceec69db09 upstream.

Commit b0ffeb537f3a ("IB/mlx5: Fix iteration overrun in GSI qps") changed
the way outstanding WRs are tracked for the GSI QP. But the fix did not
cover the case when a call to ib_post_send() fails and updates index to
track outstanding.

Since the prior commmit outstanding_pi should not be bounded otherwise the
loop generate_completions() will fail.

Fixes: b0ffeb537f3a ("IB/mlx5: Fix iteration overrun in GSI qps")
Link: https://lore.kernel.org/r/1576195889-23527-1-git-send-email-psajeepa@purestorage.com
Signed-off-by: Prabhath Sajeepa <psajeepa@purestorage.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/infiniband/hw/mlx5/gsi.c