IB/iser: Generalize map/unmap dma tasks
authorMax Gurtovoy <mgurtovoy@nvidia.com>
Tue, 8 Mar 2022 14:55:45 +0000 (16:55 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 18 Mar 2022 17:37:49 +0000 (14:37 -0300)
commit80303ee244907e720544da83e10fd0552875a6f0
tree3fbeebbbc4e0a0c7acf834db13b100b326c65f29
parentee4efeaea8837bb7018d188a9eb8837c7ff79561
IB/iser: Generalize map/unmap dma tasks

Avoid code duplication and add the mapping/unmapping of the protection
buffers to the iser_dma_map_task_data/iser_dma_unmap_task_data functions.

Link: https://lore.kernel.org/r/20220308145546.8372-4-mgurtovoy@nvidia.com
Reviewed-by: Sergey Gorenko <sergeygo@nvidia.com>
Signed-off-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
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_memory.c