IB/iser: Drain the entire QP during destruction flow
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Wed, 15 Jun 2022 08:28:39 +0000 (11:28 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 24 Jun 2022 19:17:46 +0000 (16:17 -0300)
commitb259867be27cab399cdc32b28ddaa86a877f382b
treebe90291ae8ef078df227ff47f44ed59eecbb07b8
parent686141bc02f2d1b668a12d32b5e02c7987228aff
IB/iser: Drain the entire QP during destruction flow

It's important to drain both the sq and the rq to make sure all WRs were
flushed before destroying the QP.

Link: https://lore.kernel.org/r/20220615082839.26328-1-mgurtovoy@nvidia.com
Reviewed-by: Sergey Gorenko <sergeygo@nvidia.com>
Reviewed-by: Israel Rukshin <israelr@nvidia.com>
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/iser/iser_verbs.c