diff options
author | Max Gurtovoy <mgurtovoy@nvidia.com> | 2022-03-08 16:55:44 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2022-03-18 14:37:49 -0300 |
commit | ee4efeaea8837bb7018d188a9eb8837c7ff79561 (patch) | |
tree | 9e9c7944e42f455c9875f8fd198f82174d0d543b /drivers/infiniband/ulp/iser/iser_memory.c | |
parent | 7f68d7493ff07a0ad63f63c4a1a4e0781cec0dd2 (diff) | |
download | linux-stable-ee4efeaea8837bb7018d188a9eb8837c7ff79561.tar.gz linux-stable-ee4efeaea8837bb7018d188a9eb8837c7ff79561.tar.bz2 linux-stable-ee4efeaea8837bb7018d188a9eb8837c7ff79561.zip |
IB/iser: Use iser_fr_desc as registration context
After removing the FMR support in iSER, there is only one type of
registration context. Replace the void pointer with the explicit structure
for registration (struct iser_fr_desc).
Link: https://lore.kernel.org/r/20220308145546.8372-3-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>
Diffstat (limited to 'drivers/infiniband/ulp/iser/iser_memory.c')
-rw-r--r-- | drivers/infiniband/ulp/iser/iser_memory.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_memory.c b/drivers/infiniband/ulp/iser/iser_memory.c index 1317e18cfaa8..7ec63f4a4663 100644 --- a/drivers/infiniband/ulp/iser/iser_memory.c +++ b/drivers/infiniband/ulp/iser/iser_memory.c @@ -129,7 +129,7 @@ void iser_unreg_mem_fastreg(struct iscsi_iser_task *iser_task, struct iser_fr_desc *desc; struct ib_mr_status mr_status; - desc = reg->mem_h; + desc = reg->desc; if (!desc) return; @@ -146,8 +146,8 @@ void iser_unreg_mem_fastreg(struct iscsi_iser_task *iser_task, ib_check_mr_status(desc->rsc.sig_mr, IB_MR_CHECK_SIG_STATUS, &mr_status); } - iser_reg_desc_put_fr(&iser_task->iser_conn->ib_conn, reg->mem_h); - reg->mem_h = NULL; + iser_reg_desc_put_fr(&iser_task->iser_conn->ib_conn, reg->desc); + reg->desc = NULL; } static void iser_set_dif_domain(struct scsi_cmnd *sc, @@ -357,7 +357,7 @@ int iser_reg_mem_fastreg(struct iscsi_iser_task *task, desc->sig_protected = true; } - reg->mem_h = desc; + reg->desc = desc; return 0; |