IB/iser: Don't suppress send completions
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Wed, 15 Dec 2021 13:57:19 +0000 (15:57 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 5 Jan 2022 23:36:20 +0000 (19:36 -0400)
commit433dc0efd1e041d39a1e993d6879a8c7692b0d2f
tree41e629e075fc76c8c8b0efdfa5422a25d97dddb5
parentcf9962cfd5365990d36462c83d27f13503d26e09
IB/iser: Don't suppress send completions

In order to complete a scsi command and guarantee that the HCA will never
perform an access violation when retrying a send operation we must
complete a scsi request only when both send and receive completions has
arrived. This is a preparation commit that remove the send completions
suppression. Next step will be taking care of the local invalidation
mechanism and adding a reference counter for commands.  Currently, we
don't do anything upon getting the send completion and just "consume" it.

Link: https://lore.kernel.org/r/20211215135721.3662-5-mgurtovoy@nvidia.com
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Reviewed-by: Israel Rukshin <israelr@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/iser/iscsi_iser.h
drivers/infiniband/ulp/iser/iser_initiator.c
drivers/infiniband/ulp/iser/iser_verbs.c