summaryrefslogtreecommitdiffstats
path: root/drivers/target/loopback/tcm_loop.h
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2017-05-23 16:48:40 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2017-07-06 23:11:24 -0700
commitd17203c41185a05ecd4d1fc647f16b17ab1b27ae (patch)
tree48d019bc17625eed108fa3417a52037f00a643b5 /drivers/target/loopback/tcm_loop.h
parent4d3895d5ea43cf40fd707692263c6f0988fe8d70 (diff)
downloadop-kernel-dev-d17203c41185a05ecd4d1fc647f16b17ab1b27ae.zip
op-kernel-dev-d17203c41185a05ecd4d1fc647f16b17ab1b27ae.tar.gz
target/tcm_loop: Replace a waitqueue and a counter by a completion
This patch simplifies the implementation of the tcm_loop driver but does not change its behavior. 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.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/target/loopback/tcm_loop.h b/drivers/target/loopback/tcm_loop.h
index 2134078..3acc43c 100644
--- a/drivers/target/loopback/tcm_loop.h
+++ b/drivers/target/loopback/tcm_loop.h
@@ -16,8 +16,7 @@ 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;
- atomic_t tmr_complete;
- wait_queue_head_t tl_tmr_wait;
+ struct completion tmr_done;
/* Sense buffer that will be mapped into outgoing status */
unsigned char tl_sense_buf[TRANSPORT_SENSE_BUFFER];
};
OpenPOWER on IntegriCloud