aboutsummaryrefslogtreecommitdiffstats
path: root/include/target/target_core_fabric.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/target/target_core_fabric.h')
-rw-r--r--include/target/target_core_fabric.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/include/target/target_core_fabric.h b/include/target/target_core_fabric.h
index c78a23333c4f..69fb3cfd02d7 100644
--- a/include/target/target_core_fabric.h
+++ b/include/target/target_core_fabric.h
@@ -33,12 +33,6 @@ struct target_core_fabric_ops {
33 struct se_node_acl *); 33 struct se_node_acl *);
34 u32 (*tpg_get_inst_index)(struct se_portal_group *); 34 u32 (*tpg_get_inst_index)(struct se_portal_group *);
35 /* 35 /*
36 * Optional function pointer for TCM to perform command map
37 * from TCM processing thread context, for those struct se_cmd
38 * initially allocated in interrupt context.
39 */
40 int (*new_cmd_map)(struct se_cmd *);
41 /*
42 * Optional to release struct se_cmd and fabric dependent allocated 36 * Optional to release struct se_cmd and fabric dependent allocated
43 * I/O descriptor in transport_cmd_check_stop(). 37 * I/O descriptor in transport_cmd_check_stop().
44 * 38 *
@@ -108,20 +102,18 @@ void transport_init_se_cmd(struct se_cmd *, struct target_core_fabric_ops *,
108 struct se_session *, u32, int, int, unsigned char *); 102 struct se_session *, u32, int, int, unsigned char *);
109int transport_lookup_cmd_lun(struct se_cmd *, u32); 103int transport_lookup_cmd_lun(struct se_cmd *, u32);
110int target_setup_cmd_from_cdb(struct se_cmd *, unsigned char *); 104int target_setup_cmd_from_cdb(struct se_cmd *, unsigned char *);
111void target_submit_cmd(struct se_cmd *, struct se_session *, unsigned char *, 105int target_submit_cmd(struct se_cmd *, struct se_session *, unsigned char *,
112 unsigned char *, u32, u32, int, int, int); 106 unsigned char *, u32, u32, int, int, int);
113int target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess, 107int target_submit_tmr(struct se_cmd *se_cmd, struct se_session *se_sess,
114 unsigned char *sense, u32 unpacked_lun, 108 unsigned char *sense, u32 unpacked_lun,
115 void *fabric_tmr_ptr, unsigned char tm_type, 109 void *fabric_tmr_ptr, unsigned char tm_type,
116 gfp_t, unsigned int, int); 110 gfp_t, unsigned int, int);
117int transport_handle_cdb_direct(struct se_cmd *); 111int transport_handle_cdb_direct(struct se_cmd *);
118int transport_generic_handle_cdb_map(struct se_cmd *);
119int transport_generic_handle_data(struct se_cmd *);
120int transport_generic_map_mem_to_cmd(struct se_cmd *cmd, 112int transport_generic_map_mem_to_cmd(struct se_cmd *cmd,
121 struct scatterlist *, u32, struct scatterlist *, u32); 113 struct scatterlist *, u32, struct scatterlist *, u32);
122int transport_generic_new_cmd(struct se_cmd *); 114int transport_generic_new_cmd(struct se_cmd *);
123 115
124void transport_generic_process_write(struct se_cmd *); 116void target_execute_cmd(struct se_cmd *cmd);
125 117
126void transport_generic_free_cmd(struct se_cmd *, int); 118void transport_generic_free_cmd(struct se_cmd *, int);
127 119
@@ -129,9 +121,8 @@ bool transport_wait_for_tasks(struct se_cmd *);
129int transport_check_aborted_status(struct se_cmd *, int); 121int transport_check_aborted_status(struct se_cmd *, int);
130int transport_send_check_condition_and_sense(struct se_cmd *, u8, int); 122int transport_send_check_condition_and_sense(struct se_cmd *, u8, int);
131 123
132void target_get_sess_cmd(struct se_session *, struct se_cmd *, bool);
133int target_put_sess_cmd(struct se_session *, struct se_cmd *); 124int target_put_sess_cmd(struct se_session *, struct se_cmd *);
134void target_splice_sess_cmd_list(struct se_session *); 125void target_sess_cmd_list_set_waiting(struct se_session *);
135void target_wait_for_sess_cmds(struct se_session *, int); 126void target_wait_for_sess_cmds(struct se_session *, int);
136 127
137int core_alua_check_nonop_delay(struct se_cmd *); 128int core_alua_check_nonop_delay(struct se_cmd *);