diff options
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/ulp/iser/iser_initiator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_initiator.c b/drivers/infiniband/ulp/iser/iser_initiator.c index 0a7d1ab60e6d..89e37283c836 100644 --- a/drivers/infiniband/ulp/iser/iser_initiator.c +++ b/drivers/infiniband/ulp/iser/iser_initiator.c | |||
@@ -567,7 +567,7 @@ void iser_rcv_completion(struct iser_desc *rx_desc, | |||
567 | opcode = hdr->opcode & ISCSI_OPCODE_MASK; | 567 | opcode = hdr->opcode & ISCSI_OPCODE_MASK; |
568 | 568 | ||
569 | if (opcode == ISCSI_OP_SCSI_CMD_RSP) { | 569 | if (opcode == ISCSI_OP_SCSI_CMD_RSP) { |
570 | itt = hdr->itt & ISCSI_ITT_MASK; /* mask out cid and age bits */ | 570 | itt = get_itt(hdr->itt); /* mask out cid and age bits */ |
571 | if (!(itt < session->cmds_max)) | 571 | if (!(itt < session->cmds_max)) |
572 | iser_err("itt can't be matched to task!!!" | 572 | iser_err("itt can't be matched to task!!!" |
573 | "conn %p opcode %d cmds_max %d itt %d\n", | 573 | "conn %p opcode %d cmds_max %d itt %d\n", |
@@ -625,7 +625,7 @@ void iser_snd_completion(struct iser_desc *tx_desc) | |||
625 | /* this arithmetic is legal by libiscsi dd_data allocation */ | 625 | /* this arithmetic is legal by libiscsi dd_data allocation */ |
626 | mtask = (void *) ((long)(void *)tx_desc - | 626 | mtask = (void *) ((long)(void *)tx_desc - |
627 | sizeof(struct iscsi_mgmt_task)); | 627 | sizeof(struct iscsi_mgmt_task)); |
628 | if (mtask->hdr->itt == cpu_to_be32(ISCSI_RESERVED_TAG)) { | 628 | if (mtask->hdr->itt == RESERVED_ITT) { |
629 | struct iscsi_session *session = conn->session; | 629 | struct iscsi_session *session = conn->session; |
630 | 630 | ||
631 | spin_lock(&conn->session->lock); | 631 | spin_lock(&conn->session->lock); |