diff options
author | Andy Grover <agrover@redhat.com> | 2012-01-19 16:39:21 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-02-25 17:37:48 -0500 |
commit | ea98d7f9c7cc38de55f81a1c249112442b93c7c9 (patch) | |
tree | cd5b136fa5b22ba290a9da8992c486a5d5ff68e8 /include/target | |
parent | a1321f71e87930579afc4a4029cce128c23f3fd3 (diff) |
target: Add target_submit_tmr helper function
Similar to target_submit_cmd, this function lets fabrics call one function
(albeit with a lot of parameters) instead of 3 or more.
(nab: Add missing return for transport_lookup_tmr_lun failure)
Signed-off-by: Andy Grover <agrover@redhat.com>
Cc: Kiran Patil <kiran.patil@intel.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_fabric.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h index c5c16efe396d..fcc340698d81 100644 --- a/include/target/target_core_fabric.h +++ b/include/target/target_core_fabric.h | |||
@@ -116,6 +116,9 @@ int transport_lookup_cmd_lun(struct se_cmd *, u32); | |||
116 | int transport_generic_allocate_tasks(struct se_cmd *, unsigned char *); | 116 | int transport_generic_allocate_tasks(struct se_cmd *, unsigned char *); |
117 | void target_submit_cmd(struct se_cmd *, struct se_session *, unsigned char *, | 117 | void target_submit_cmd(struct se_cmd *, struct se_session *, unsigned char *, |
118 | unsigned char *, u32, u32, int, int, int); | 118 | unsigned char *, u32, u32, int, int, int); |
119 | void target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess, | ||
120 | unsigned char *sense, u32 unpacked_lun, | ||
121 | void *fabric_tmr_ptr, unsigned char tm_type, int flags); | ||
119 | int transport_handle_cdb_direct(struct se_cmd *); | 122 | int transport_handle_cdb_direct(struct se_cmd *); |
120 | int transport_generic_handle_cdb_map(struct se_cmd *); | 123 | int transport_generic_handle_cdb_map(struct se_cmd *); |
121 | int transport_generic_handle_data(struct se_cmd *); | 124 | int transport_generic_handle_data(struct se_cmd *); |