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 14:21:50 -0700 |
commit | 66c7db687631247b7a3493322b9aedeef3c6c7b5 (patch) | |
tree | 97584e963d8572fe7b0a8c0bd94bad29880bb6c4 /drivers/target/iscsi/iscsi_target_configfs.c | |
parent | cea0b4ceec5d09330fd80c0185532a502db9c2b7 (diff) | |
download | linux-66c7db687631247b7a3493322b9aedeef3c6c7b5.tar.gz linux-66c7db687631247b7a3493322b9aedeef3c6c7b5.tar.bz2 linux-66c7db687631247b7a3493322b9aedeef3c6c7b5.zip |
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_configfs.c')
-rw-r--r-- | drivers/target/iscsi/iscsi_target_configfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/target/iscsi/iscsi_target_configfs.c b/drivers/target/iscsi/iscsi_target_configfs.c index 8c9955f51c5d..ff6fd4fb624d 100644 --- a/drivers/target/iscsi/iscsi_target_configfs.c +++ b/drivers/target/iscsi/iscsi_target_configfs.c @@ -1475,7 +1475,8 @@ static u32 iscsi_get_task_tag(struct se_cmd *se_cmd) { struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); - return cmd->init_task_tag; + /* only used for printks or comparism with ->ref_task_tag */ + return (__force u32)cmd->init_task_tag; } static int iscsi_get_cmd_state(struct se_cmd *se_cmd) |