diff options
-rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index bbd86e82e042..56610751eb28 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c | |||
@@ -2029,8 +2029,6 @@ isert_map_rdma(struct iscsi_conn *conn, struct iscsi_cmd *cmd, | |||
2029 | 2029 | ||
2030 | if (wr->iser_ib_op == ISER_IB_RDMA_WRITE) { | 2030 | if (wr->iser_ib_op == ISER_IB_RDMA_WRITE) { |
2031 | data_left = se_cmd->data_length; | 2031 | data_left = se_cmd->data_length; |
2032 | iscsit_increment_maxcmdsn(cmd, conn->sess); | ||
2033 | cmd->stat_sn = conn->stat_sn++; | ||
2034 | } else { | 2032 | } else { |
2035 | sg_off = cmd->write_data_done / PAGE_SIZE; | 2033 | sg_off = cmd->write_data_done / PAGE_SIZE; |
2036 | data_left = se_cmd->data_length - cmd->write_data_done; | 2034 | data_left = se_cmd->data_length - cmd->write_data_done; |
@@ -2242,8 +2240,6 @@ isert_reg_rdma_frwr(struct iscsi_conn *conn, struct iscsi_cmd *cmd, | |||
2242 | 2240 | ||
2243 | if (wr->iser_ib_op == ISER_IB_RDMA_WRITE) { | 2241 | if (wr->iser_ib_op == ISER_IB_RDMA_WRITE) { |
2244 | data_left = se_cmd->data_length; | 2242 | data_left = se_cmd->data_length; |
2245 | iscsit_increment_maxcmdsn(cmd, conn->sess); | ||
2246 | cmd->stat_sn = conn->stat_sn++; | ||
2247 | } else { | 2243 | } else { |
2248 | sg_off = cmd->write_data_done / PAGE_SIZE; | 2244 | sg_off = cmd->write_data_done / PAGE_SIZE; |
2249 | data_left = se_cmd->data_length - cmd->write_data_done; | 2245 | data_left = se_cmd->data_length - cmd->write_data_done; |
@@ -2352,7 +2348,7 @@ isert_put_datain(struct iscsi_conn *conn, struct iscsi_cmd *cmd) | |||
2352 | * Build isert_conn->tx_desc for iSCSI response PDU and attach | 2348 | * Build isert_conn->tx_desc for iSCSI response PDU and attach |
2353 | */ | 2349 | */ |
2354 | isert_create_send_desc(isert_conn, isert_cmd, &isert_cmd->tx_desc); | 2350 | isert_create_send_desc(isert_conn, isert_cmd, &isert_cmd->tx_desc); |
2355 | iscsit_build_rsp_pdu(cmd, conn, false, (struct iscsi_scsi_rsp *) | 2351 | iscsit_build_rsp_pdu(cmd, conn, true, (struct iscsi_scsi_rsp *) |
2356 | &isert_cmd->tx_desc.iscsi_header); | 2352 | &isert_cmd->tx_desc.iscsi_header); |
2357 | isert_init_tx_hdrs(isert_conn, &isert_cmd->tx_desc); | 2353 | isert_init_tx_hdrs(isert_conn, &isert_cmd->tx_desc); |
2358 | isert_init_send_wr(isert_conn, isert_cmd, | 2354 | isert_init_send_wr(isert_conn, isert_cmd, |