diff options
author | Christoph Hellwig <hch@infradead.org> | 2012-09-26 08:00:39 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-10-03 17:21:50 -0400 |
commit | 66c7db687631247b7a3493322b9aedeef3c6c7b5 (patch) | |
tree | 97584e963d8572fe7b0a8c0bd94bad29880bb6c4 /drivers/target/iscsi/iscsi_target_util.c | |
parent | cea0b4ceec5d09330fd80c0185532a502db9c2b7 (diff) |
iscsit: use the itt_t abstract type
Use the special itt_t type defined by the iscsi headers and the initiator
to make sure it's an opaque value.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_util.c')
-rw-r--r-- | drivers/target/iscsi/iscsi_target_util.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/target/iscsi/iscsi_target_util.c b/drivers/target/iscsi/iscsi_target_util.c index b42cdeb153df..22bec9e899c0 100644 --- a/drivers/target/iscsi/iscsi_target_util.c +++ b/drivers/target/iscsi/iscsi_target_util.c | |||
@@ -351,7 +351,7 @@ int iscsit_check_unsolicited_dataout(struct iscsi_cmd *cmd, unsigned char *buf) | |||
351 | 351 | ||
352 | struct iscsi_cmd *iscsit_find_cmd_from_itt( | 352 | struct iscsi_cmd *iscsit_find_cmd_from_itt( |
353 | struct iscsi_conn *conn, | 353 | struct iscsi_conn *conn, |
354 | u32 init_task_tag) | 354 | itt_t init_task_tag) |
355 | { | 355 | { |
356 | struct iscsi_cmd *cmd; | 356 | struct iscsi_cmd *cmd; |
357 | 357 | ||
@@ -371,7 +371,7 @@ struct iscsi_cmd *iscsit_find_cmd_from_itt( | |||
371 | 371 | ||
372 | struct iscsi_cmd *iscsit_find_cmd_from_itt_or_dump( | 372 | struct iscsi_cmd *iscsit_find_cmd_from_itt_or_dump( |
373 | struct iscsi_conn *conn, | 373 | struct iscsi_conn *conn, |
374 | u32 init_task_tag, | 374 | itt_t init_task_tag, |
375 | u32 length) | 375 | u32 length) |
376 | { | 376 | { |
377 | struct iscsi_cmd *cmd; | 377 | struct iscsi_cmd *cmd; |
@@ -417,7 +417,7 @@ int iscsit_find_cmd_for_recovery( | |||
417 | struct iscsi_session *sess, | 417 | struct iscsi_session *sess, |
418 | struct iscsi_cmd **cmd_ptr, | 418 | struct iscsi_cmd **cmd_ptr, |
419 | struct iscsi_conn_recovery **cr_ptr, | 419 | struct iscsi_conn_recovery **cr_ptr, |
420 | u32 init_task_tag) | 420 | itt_t init_task_tag) |
421 | { | 421 | { |
422 | struct iscsi_cmd *cmd = NULL; | 422 | struct iscsi_cmd *cmd = NULL; |
423 | struct iscsi_conn_recovery *cr; | 423 | struct iscsi_conn_recovery *cr; |
@@ -855,7 +855,7 @@ static int iscsit_add_nopin(struct iscsi_conn *conn, int want_response) | |||
855 | cmd->iscsi_opcode = ISCSI_OP_NOOP_IN; | 855 | cmd->iscsi_opcode = ISCSI_OP_NOOP_IN; |
856 | state = (want_response) ? ISTATE_SEND_NOPIN_WANT_RESPONSE : | 856 | state = (want_response) ? ISTATE_SEND_NOPIN_WANT_RESPONSE : |
857 | ISTATE_SEND_NOPIN_NO_RESPONSE; | 857 | ISTATE_SEND_NOPIN_NO_RESPONSE; |
858 | cmd->init_task_tag = 0xFFFFFFFF; | 858 | cmd->init_task_tag = RESERVED_ITT; |
859 | spin_lock_bh(&conn->sess->ttt_lock); | 859 | spin_lock_bh(&conn->sess->ttt_lock); |
860 | cmd->targ_xfer_tag = (want_response) ? conn->sess->targ_xfer_tag++ : | 860 | cmd->targ_xfer_tag = (want_response) ? conn->sess->targ_xfer_tag++ : |
861 | 0xFFFFFFFF; | 861 | 0xFFFFFFFF; |
@@ -1222,7 +1222,7 @@ int iscsit_tx_login_rsp(struct iscsi_conn *conn, u8 status_class, u8 status_deta | |||
1222 | hdr->opcode = ISCSI_OP_LOGIN_RSP; | 1222 | hdr->opcode = ISCSI_OP_LOGIN_RSP; |
1223 | hdr->status_class = status_class; | 1223 | hdr->status_class = status_class; |
1224 | hdr->status_detail = status_detail; | 1224 | hdr->status_detail = status_detail; |
1225 | hdr->itt = cpu_to_be32(conn->login_itt); | 1225 | hdr->itt = conn->login_itt; |
1226 | 1226 | ||
1227 | iov.iov_base = &iscsi_hdr; | 1227 | iov.iov_base = &iscsi_hdr; |
1228 | iov.iov_len = ISCSI_HDR_LEN; | 1228 | iov.iov_len = ISCSI_HDR_LEN; |