summaryrefslogtreecommitdiff
path: root/drivers/target/loopback/tcm_loop.h
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2017-05-24 02:48:39 +0300
committerNicholas Bellinger <nab@linux-iscsi.org>2017-07-07 09:11:23 +0300
commit4d3895d5ea43cf40fd707692263c6f0988fe8d70 (patch)
tree6f7a6b8068679033564791a8cd0c1abec8eb1a40 /drivers/target/loopback/tcm_loop.h
parentc00e6220231542c6409780a3e9bfa44be7d94f3a (diff)
downloadlinux-4d3895d5ea43cf40fd707692263c6f0988fe8d70.tar.xz
target/tcm_loop: Merge struct tcm_loop_cmd and struct tcm_loop_tmr
This patch simplifies the tcm_loop implementation but does not change any functionality. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.com> Cc: David Disseldorp <ddiss@suse.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/loopback/tcm_loop.h')
-rw-r--r--drivers/target/loopback/tcm_loop.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/target/loopback/tcm_loop.h b/drivers/target/loopback/tcm_loop.h
index a8a230b4e6b5..21340781568b 100644
--- a/drivers/target/loopback/tcm_loop.h
+++ b/drivers/target/loopback/tcm_loop.h
@@ -16,13 +16,10 @@ struct tcm_loop_cmd {
/* The TCM I/O descriptor that is accessed via container_of() */
struct se_cmd tl_se_cmd;
struct work_struct work;
- /* Sense buffer that will be mapped into outgoing status */
- unsigned char tl_sense_buf[TRANSPORT_SENSE_BUFFER];
-};
-
-struct tcm_loop_tmr {
atomic_t tmr_complete;
wait_queue_head_t tl_tmr_wait;
+ /* Sense buffer that will be mapped into outgoing status */
+ unsigned char tl_sense_buf[TRANSPORT_SENSE_BUFFER];
};
struct tcm_loop_nexus {