File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,6 @@ struct nvmet_rdma_cmd {
5353
5454enum {
5555 NVMET_RDMA_REQ_INLINE_DATA = (1 << 0 ),
56- NVMET_RDMA_REQ_INVALIDATE_RKEY = (1 << 1 ),
5756};
5857
5958struct nvmet_rdma_rsp {
@@ -722,7 +721,7 @@ static void nvmet_rdma_queue_response(struct nvmet_req *req)
722721 struct rdma_cm_id * cm_id = rsp -> queue -> cm_id ;
723722 struct ib_send_wr * first_wr ;
724723
725- if (rsp -> flags & NVMET_RDMA_REQ_INVALIDATE_RKEY ) {
724+ if (rsp -> invalidate_rkey ) {
726725 rsp -> send_wr .opcode = IB_WR_SEND_WITH_INV ;
727726 rsp -> send_wr .ex .invalidate_rkey = rsp -> invalidate_rkey ;
728727 } else {
@@ -905,10 +904,8 @@ static u16 nvmet_rdma_map_sgl_keyed(struct nvmet_rdma_rsp *rsp,
905904 goto error_out ;
906905 rsp -> n_rdma += ret ;
907906
908- if (invalidate ) {
907+ if (invalidate )
909908 rsp -> invalidate_rkey = key ;
910- rsp -> flags |= NVMET_RDMA_REQ_INVALIDATE_RKEY ;
911- }
912909
913910 return 0 ;
914911
@@ -1047,6 +1044,7 @@ static void nvmet_rdma_recv_done(struct ib_cq *cq, struct ib_wc *wc)
10471044 rsp -> req .cmd = cmd -> nvme_cmd ;
10481045 rsp -> req .port = queue -> port ;
10491046 rsp -> n_rdma = 0 ;
1047+ rsp -> invalidate_rkey = 0 ;
10501048
10511049 if (unlikely (queue -> state != NVMET_RDMA_Q_LIVE )) {
10521050 unsigned long flags ;
You can’t perform that action at this time.
0 commit comments