diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-02-09 11:39:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-09 12:14:07 -0500 |
commit | b4377356450e2358f5f92d34f130d6cb6574bf76 (patch) | |
tree | c5f1d7fb258e115f6b3429942ea1eae944823799 /drivers/infiniband/ulp/iser | |
parent | 04d4f7a1143e4fb291cd1584c9ac8de4ba584d34 (diff) |
[PATCH] iscsi endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/infiniband/ulp/iser')
-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); |