Skip to content

Commit 3e081b7

Browse files
KAGA-KOKOjgunthorpe
authored andcommitted
IB/iser: Inline two work request conversion functions
Since the next patch will change the return type of these functions into a const pointer and since the iSER driver modifies the work request these functions return a pointer two, inline two work request conversion function calls. This patch does not change any functionality. Signed-off-by: Bart Van Assche <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Max Gurtovoy <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 7aaa180 commit 3e081b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/infiniband/ulp/iser/iser_memory.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ iser_reg_sig_mr(struct iscsi_iser_task *iser_task,
405405

406406
ib_update_fast_reg_key(mr, ib_inc_rkey(mr->rkey));
407407

408-
wr = sig_handover_wr(iser_tx_next_wr(tx_desc));
408+
wr = container_of(iser_tx_next_wr(tx_desc), struct ib_sig_handover_wr,
409+
wr);
409410
wr->wr.opcode = IB_WR_REG_SIG_MR;
410411
wr->wr.wr_cqe = cqe;
411412
wr->wr.sg_list = &data_reg->sge;
@@ -457,7 +458,7 @@ static int iser_fast_reg_mr(struct iscsi_iser_task *iser_task,
457458
return n < 0 ? n : -EINVAL;
458459
}
459460

460-
wr = reg_wr(iser_tx_next_wr(tx_desc));
461+
wr = container_of(iser_tx_next_wr(tx_desc), struct ib_reg_wr, wr);
461462
wr->wr.opcode = IB_WR_REG_MR;
462463
wr->wr.wr_cqe = cqe;
463464
wr->wr.send_flags = 0;

0 commit comments

Comments
 (0)