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 {
53
53
54
54
enum {
55
55
NVMET_RDMA_REQ_INLINE_DATA = (1 << 0 ),
56
- NVMET_RDMA_REQ_INVALIDATE_RKEY = (1 << 1 ),
57
56
};
58
57
59
58
struct nvmet_rdma_rsp {
@@ -722,7 +721,7 @@ static void nvmet_rdma_queue_response(struct nvmet_req *req)
722
721
struct rdma_cm_id * cm_id = rsp -> queue -> cm_id ;
723
722
struct ib_send_wr * first_wr ;
724
723
725
- if (rsp -> flags & NVMET_RDMA_REQ_INVALIDATE_RKEY ) {
724
+ if (rsp -> invalidate_rkey ) {
726
725
rsp -> send_wr .opcode = IB_WR_SEND_WITH_INV ;
727
726
rsp -> send_wr .ex .invalidate_rkey = rsp -> invalidate_rkey ;
728
727
} else {
@@ -905,10 +904,8 @@ static u16 nvmet_rdma_map_sgl_keyed(struct nvmet_rdma_rsp *rsp,
905
904
goto error_out ;
906
905
rsp -> n_rdma += ret ;
907
906
908
- if (invalidate ) {
907
+ if (invalidate )
909
908
rsp -> invalidate_rkey = key ;
910
- rsp -> flags |= NVMET_RDMA_REQ_INVALIDATE_RKEY ;
911
- }
912
909
913
910
return 0 ;
914
911
@@ -1047,6 +1044,7 @@ static void nvmet_rdma_recv_done(struct ib_cq *cq, struct ib_wc *wc)
1047
1044
rsp -> req .cmd = cmd -> nvme_cmd ;
1048
1045
rsp -> req .port = queue -> port ;
1049
1046
rsp -> n_rdma = 0 ;
1047
+ rsp -> invalidate_rkey = 0 ;
1050
1048
1051
1049
if (unlikely (queue -> state != NVMET_RDMA_Q_LIVE )) {
1052
1050
unsigned long flags ;
You can’t perform that action at this time.
0 commit comments