mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 00:34:20 +08:00
a91eb7d9dc
This patch prepares the iscsi-target login code for multi-plexing support. This includes: - Adding iscsi_tpg_np->tpg_np_kref + iscsit_login_kref_put() for handling callback of iscsi_tpg_np->tpg_np_comp - Adding kref_put() in iscsit_deaccess_np() - Adding kref_put() and wait_for_completion() in iscsit_reset_np_thread() - Refactor login failure path release logic into iscsi_target_login_sess_out() - Update __iscsi_target_login_thread() to handle iscsi_post_login_handler() asynchronous completion - Add shutdown parameter for iscsit_clear_tpg_np_login_thread*() v3 changes: - Convert iscsi_portal_group->np_login_lock to ->np_login_sem - Add LOGIN_FLAGS definitions v2 changes: - Remove duplicate call to iscsi_post_login_handler() in __iscsi_target_login_thread() - Drop unused iscsi_np->np_login_tpg Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
22 lines
1.1 KiB
C
22 lines
1.1 KiB
C
#ifndef ISCSI_TARGET_LOGIN_H
|
|
#define ISCSI_TARGET_LOGIN_H
|
|
|
|
extern int iscsi_login_setup_crypto(struct iscsi_conn *);
|
|
extern int iscsi_check_for_session_reinstatement(struct iscsi_conn *);
|
|
extern int iscsi_login_post_auth_non_zero_tsih(struct iscsi_conn *, u16, u32);
|
|
extern int iscsit_setup_np(struct iscsi_np *,
|
|
struct __kernel_sockaddr_storage *);
|
|
extern int iscsi_target_setup_login_socket(struct iscsi_np *,
|
|
struct __kernel_sockaddr_storage *);
|
|
extern int iscsit_accept_np(struct iscsi_np *, struct iscsi_conn *);
|
|
extern int iscsit_get_login_rx(struct iscsi_conn *, struct iscsi_login *);
|
|
extern int iscsit_put_login_tx(struct iscsi_conn *, struct iscsi_login *, u32);
|
|
extern void iscsit_free_conn(struct iscsi_np *, struct iscsi_conn *);
|
|
extern int iscsi_post_login_handler(struct iscsi_np *, struct iscsi_conn *, u8);
|
|
extern void iscsi_target_login_sess_out(struct iscsi_conn *, struct iscsi_np *,
|
|
bool, bool);
|
|
extern int iscsi_target_login_thread(void *);
|
|
extern int iscsi_login_disable_FIM_keys(struct iscsi_param_list *, struct iscsi_conn *);
|
|
|
|
#endif /*** ISCSI_TARGET_LOGIN_H ***/
|