diff options
author | Christoph Hellwig <hch@infradead.org> | 2011-10-17 19:56:46 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-10-24 05:21:41 +0200 |
commit | cdbb70bb4c17dad0ee23a357030021892a0f60f0 (patch) | |
tree | 8387550cc921a1fb92de73b455b25fdd3cc98e92 /include/target | |
parent | target: fix list walking in transport_free_dev_tasks (diff) | |
download | linux-cdbb70bb4c17dad0ee23a357030021892a0f60f0.tar.xz linux-cdbb70bb4c17dad0ee23a357030021892a0f60f0.zip |
target: factor some duplicate code for stopping a task
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_transport.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/target/target_core_transport.h b/include/target/target_core_transport.h index 9c7e32870f87..1ba5835426fc 100644 --- a/include/target/target_core_transport.h +++ b/include/target/target_core_transport.h @@ -171,6 +171,7 @@ extern int transport_generic_handle_data(struct se_cmd *); extern void transport_new_cmd_failure(struct se_cmd *); extern int transport_generic_handle_tmr(struct se_cmd *); extern void transport_generic_free_cmd_intr(struct se_cmd *); +extern bool target_stop_task(struct se_task *task, unsigned long *flags); extern void __transport_stop_task_timer(struct se_task *, unsigned long *); extern int transport_generic_map_mem_to_cmd(struct se_cmd *cmd, struct scatterlist *, u32, struct scatterlist *, u32); |