Merge tag 'timers-core-2023-04-28' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-block.git] / include / target / target_core_fabric.h
index 38f0662476d149c1c5faa562f0b2f706163ce0db..b188b1e90e1edb945f0d6cee5e3e3731a16de67e 100644 (file)
@@ -133,7 +133,12 @@ struct se_session *target_setup_session(struct se_portal_group *,
                                struct se_session *, void *));
 void target_remove_session(struct se_session *);
 
-int transport_init_session(struct se_session *se_sess);
+void target_stop_cmd_counter(struct target_cmd_counter *cmd_cnt);
+void target_wait_for_cmds(struct target_cmd_counter *cmd_cnt);
+struct target_cmd_counter *target_alloc_cmd_counter(void);
+void target_free_cmd_counter(struct target_cmd_counter *cmd_cnt);
+
+void transport_init_session(struct se_session *se_sess);
 struct se_session *transport_alloc_session(enum target_prot_op);
 int transport_alloc_session_tags(struct se_session *, unsigned int,
                unsigned int);
@@ -149,9 +154,11 @@ void       transport_deregister_session_configfs(struct se_session *);
 void   transport_deregister_session(struct se_session *);
 
 
-void   __target_init_cmd(struct se_cmd *,
-               const struct target_core_fabric_ops *,
-               struct se_session *, u32, int, int, unsigned char *, u64);
+void   __target_init_cmd(struct se_cmd *cmd,
+               const struct target_core_fabric_ops *tfo,
+               struct se_session *sess, u32 data_length, int data_direction,
+               int task_attr, unsigned char *sense_buffer, u64 unpacked_lun,
+               struct target_cmd_counter *cmd_cnt);
 int    target_init_cmd(struct se_cmd *se_cmd, struct se_session *se_sess,
                unsigned char *sense, u64 unpacked_lun, u32 data_length,
                int task_attr, int data_dir, int flags);