Commit be36d683 authored by Max Gurtovoy's avatar Max Gurtovoy Committed by Martin K. Petersen

scsi: target: iscsi: Rename iscsi_conn to iscsit_conn

The structure iscsi_conn naming is used by the iSCSI initiator
driver. Rename the target conn to iscsit_conn to have more readable code.

Link: https://lore.kernel.org/r/20220428092939.36768-2-mgurtovoy@nvidia.comReviewed-by: default avatarMike Christie <michael.christie@oracle.com>
Signed-off-by: default avatarMax Gurtovoy <mgurtovoy@nvidia.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 66cd9d4e
This diff is collapsed.
...@@ -173,7 +173,7 @@ struct isert_conn { ...@@ -173,7 +173,7 @@ struct isert_conn {
u64 login_rsp_dma; u64 login_rsp_dma;
struct iser_rx_desc *rx_descs; struct iser_rx_desc *rx_descs;
struct ib_recv_wr rx_wr[ISERT_QP_MAX_RECV_DTOS]; struct ib_recv_wr rx_wr[ISERT_QP_MAX_RECV_DTOS];
struct iscsi_conn *conn; struct iscsit_conn *conn;
struct list_head node; struct list_head node;
struct completion login_comp; struct completion login_comp;
struct completion login_req_comp; struct completion login_req_comp;
......
...@@ -189,7 +189,7 @@ struct cxgbit_np { ...@@ -189,7 +189,7 @@ struct cxgbit_np {
struct cxgbit_sock { struct cxgbit_sock {
struct cxgbit_sock_common com; struct cxgbit_sock_common com;
struct cxgbit_np *cnp; struct cxgbit_np *cnp;
struct iscsi_conn *conn; struct iscsit_conn *conn;
struct l2t_entry *l2t; struct l2t_entry *l2t;
struct dst_entry *dst; struct dst_entry *dst;
struct list_head list; struct list_head list;
...@@ -316,32 +316,32 @@ typedef void (*cxgbit_cplhandler_func)(struct cxgbit_device *, ...@@ -316,32 +316,32 @@ typedef void (*cxgbit_cplhandler_func)(struct cxgbit_device *,
int cxgbit_setup_np(struct iscsi_np *, struct sockaddr_storage *); int cxgbit_setup_np(struct iscsi_np *, struct sockaddr_storage *);
int cxgbit_setup_conn_digest(struct cxgbit_sock *); int cxgbit_setup_conn_digest(struct cxgbit_sock *);
int cxgbit_accept_np(struct iscsi_np *, struct iscsi_conn *); int cxgbit_accept_np(struct iscsi_np *, struct iscsit_conn *);
void cxgbit_free_np(struct iscsi_np *); void cxgbit_free_np(struct iscsi_np *);
void cxgbit_abort_conn(struct cxgbit_sock *csk); void cxgbit_abort_conn(struct cxgbit_sock *csk);
void cxgbit_free_conn(struct iscsi_conn *); void cxgbit_free_conn(struct iscsit_conn *);
extern cxgbit_cplhandler_func cxgbit_cplhandlers[NUM_CPL_CMDS]; extern cxgbit_cplhandler_func cxgbit_cplhandlers[NUM_CPL_CMDS];
int cxgbit_get_login_rx(struct iscsi_conn *, struct iscsi_login *); int cxgbit_get_login_rx(struct iscsit_conn *, struct iscsi_login *);
int cxgbit_rx_data_ack(struct cxgbit_sock *); int cxgbit_rx_data_ack(struct cxgbit_sock *);
int cxgbit_l2t_send(struct cxgbit_device *, struct sk_buff *, int cxgbit_l2t_send(struct cxgbit_device *, struct sk_buff *,
struct l2t_entry *); struct l2t_entry *);
void cxgbit_push_tx_frames(struct cxgbit_sock *); void cxgbit_push_tx_frames(struct cxgbit_sock *);
int cxgbit_put_login_tx(struct iscsi_conn *, struct iscsi_login *, u32); int cxgbit_put_login_tx(struct iscsit_conn *, struct iscsi_login *, u32);
int cxgbit_xmit_pdu(struct iscsi_conn *, struct iscsit_cmd *, int cxgbit_xmit_pdu(struct iscsit_conn *, struct iscsit_cmd *,
struct iscsi_datain_req *, const void *, u32); struct iscsi_datain_req *, const void *, u32);
void cxgbit_get_r2t_ttt(struct iscsi_conn *, struct iscsit_cmd *, void cxgbit_get_r2t_ttt(struct iscsit_conn *, struct iscsit_cmd *,
struct iscsi_r2t *); struct iscsi_r2t *);
u32 cxgbit_send_tx_flowc_wr(struct cxgbit_sock *); u32 cxgbit_send_tx_flowc_wr(struct cxgbit_sock *);
int cxgbit_ofld_send(struct cxgbit_device *, struct sk_buff *); int cxgbit_ofld_send(struct cxgbit_device *, struct sk_buff *);
void cxgbit_get_rx_pdu(struct iscsi_conn *); void cxgbit_get_rx_pdu(struct iscsit_conn *);
int cxgbit_validate_params(struct iscsi_conn *); int cxgbit_validate_params(struct iscsit_conn *);
struct cxgbit_device *cxgbit_find_device(struct net_device *, u8 *); struct cxgbit_device *cxgbit_find_device(struct net_device *, u8 *);
/* DDP */ /* DDP */
int cxgbit_ddp_init(struct cxgbit_device *); int cxgbit_ddp_init(struct cxgbit_device *);
int cxgbit_setup_conn_pgidx(struct cxgbit_sock *, u32); int cxgbit_setup_conn_pgidx(struct cxgbit_sock *, u32);
int cxgbit_reserve_ttt(struct cxgbit_sock *, struct iscsit_cmd *); int cxgbit_reserve_ttt(struct cxgbit_sock *, struct iscsit_cmd *);
void cxgbit_unmap_cmd(struct iscsi_conn *, struct iscsit_cmd *); void cxgbit_unmap_cmd(struct iscsit_conn *, struct iscsit_cmd *);
static inline static inline
struct cxgbi_ppm *cdev2ppm(struct cxgbit_device *cdev) struct cxgbi_ppm *cdev2ppm(struct cxgbit_device *cdev)
......
...@@ -465,7 +465,7 @@ int cxgbit_setup_np(struct iscsi_np *np, struct sockaddr_storage *ksockaddr) ...@@ -465,7 +465,7 @@ int cxgbit_setup_np(struct iscsi_np *np, struct sockaddr_storage *ksockaddr)
} }
static void static void
cxgbit_set_conn_info(struct iscsi_np *np, struct iscsi_conn *conn, cxgbit_set_conn_info(struct iscsi_np *np, struct iscsit_conn *conn,
struct cxgbit_sock *csk) struct cxgbit_sock *csk)
{ {
conn->login_family = np->np_sockaddr.ss_family; conn->login_family = np->np_sockaddr.ss_family;
...@@ -473,7 +473,7 @@ cxgbit_set_conn_info(struct iscsi_np *np, struct iscsi_conn *conn, ...@@ -473,7 +473,7 @@ cxgbit_set_conn_info(struct iscsi_np *np, struct iscsi_conn *conn,
conn->local_sockaddr = csk->com.local_addr; conn->local_sockaddr = csk->com.local_addr;
} }
int cxgbit_accept_np(struct iscsi_np *np, struct iscsi_conn *conn) int cxgbit_accept_np(struct iscsi_np *np, struct iscsit_conn *conn)
{ {
struct cxgbit_np *cnp = np->np_context; struct cxgbit_np *cnp = np->np_context;
struct cxgbit_sock *csk; struct cxgbit_sock *csk;
...@@ -717,7 +717,7 @@ void cxgbit_abort_conn(struct cxgbit_sock *csk) ...@@ -717,7 +717,7 @@ void cxgbit_abort_conn(struct cxgbit_sock *csk)
static void __cxgbit_free_conn(struct cxgbit_sock *csk) static void __cxgbit_free_conn(struct cxgbit_sock *csk)
{ {
struct iscsi_conn *conn = csk->conn; struct iscsit_conn *conn = csk->conn;
bool release = false; bool release = false;
pr_debug("%s: state %d\n", pr_debug("%s: state %d\n",
...@@ -751,7 +751,7 @@ static void __cxgbit_free_conn(struct cxgbit_sock *csk) ...@@ -751,7 +751,7 @@ static void __cxgbit_free_conn(struct cxgbit_sock *csk)
cxgbit_put_csk(csk); cxgbit_put_csk(csk);
} }
void cxgbit_free_conn(struct iscsi_conn *conn) void cxgbit_free_conn(struct iscsit_conn *conn)
{ {
__cxgbit_free_conn(conn->context); __cxgbit_free_conn(conn->context);
} }
......
...@@ -227,7 +227,7 @@ cxgbit_ddp_reserve(struct cxgbit_sock *csk, struct cxgbi_task_tag_info *ttinfo, ...@@ -227,7 +227,7 @@ cxgbit_ddp_reserve(struct cxgbit_sock *csk, struct cxgbi_task_tag_info *ttinfo,
} }
void void
cxgbit_get_r2t_ttt(struct iscsi_conn *conn, struct iscsit_cmd *cmd, cxgbit_get_r2t_ttt(struct iscsit_conn *conn, struct iscsit_cmd *cmd,
struct iscsi_r2t *r2t) struct iscsi_r2t *r2t)
{ {
struct cxgbit_sock *csk = conn->context; struct cxgbit_sock *csk = conn->context;
...@@ -260,7 +260,7 @@ cxgbit_get_r2t_ttt(struct iscsi_conn *conn, struct iscsit_cmd *cmd, ...@@ -260,7 +260,7 @@ cxgbit_get_r2t_ttt(struct iscsi_conn *conn, struct iscsit_cmd *cmd,
r2t->targ_xfer_tag = ttinfo->tag; r2t->targ_xfer_tag = ttinfo->tag;
} }
void cxgbit_unmap_cmd(struct iscsi_conn *conn, struct iscsit_cmd *cmd) void cxgbit_unmap_cmd(struct iscsit_conn *conn, struct iscsit_cmd *cmd)
{ {
struct cxgbit_cmd *ccmd = iscsit_priv_cmd(cmd); struct cxgbit_cmd *ccmd = iscsit_priv_cmd(cmd);
......
...@@ -657,7 +657,7 @@ cxgbit_dcbevent_notify(struct notifier_block *nb, unsigned long action, ...@@ -657,7 +657,7 @@ cxgbit_dcbevent_notify(struct notifier_block *nb, unsigned long action,
} }
#endif #endif
static enum target_prot_op cxgbit_get_sup_prot_ops(struct iscsi_conn *conn) static enum target_prot_op cxgbit_get_sup_prot_ops(struct iscsit_conn *conn)
{ {
return TARGET_PROT_NORMAL; return TARGET_PROT_NORMAL;
} }
......
...@@ -393,7 +393,7 @@ static int ...@@ -393,7 +393,7 @@ static int
cxgbit_tx_datain_iso(struct cxgbit_sock *csk, struct iscsit_cmd *cmd, cxgbit_tx_datain_iso(struct cxgbit_sock *csk, struct iscsit_cmd *cmd,
struct iscsi_datain_req *dr) struct iscsi_datain_req *dr)
{ {
struct iscsi_conn *conn = csk->conn; struct iscsit_conn *conn = csk->conn;
struct sk_buff *skb; struct sk_buff *skb;
struct iscsi_datain datain; struct iscsi_datain datain;
struct cxgbit_iso_info iso_info; struct cxgbit_iso_info iso_info;
...@@ -510,7 +510,7 @@ cxgbit_tx_datain(struct cxgbit_sock *csk, struct iscsit_cmd *cmd, ...@@ -510,7 +510,7 @@ cxgbit_tx_datain(struct cxgbit_sock *csk, struct iscsit_cmd *cmd,
} }
static int static int
cxgbit_xmit_datain_pdu(struct iscsi_conn *conn, struct iscsit_cmd *cmd, cxgbit_xmit_datain_pdu(struct iscsit_conn *conn, struct iscsit_cmd *cmd,
struct iscsi_datain_req *dr, struct iscsi_datain_req *dr,
const struct iscsi_datain *datain) const struct iscsi_datain *datain)
{ {
...@@ -530,7 +530,7 @@ cxgbit_xmit_datain_pdu(struct iscsi_conn *conn, struct iscsit_cmd *cmd, ...@@ -530,7 +530,7 @@ cxgbit_xmit_datain_pdu(struct iscsi_conn *conn, struct iscsit_cmd *cmd,
} }
static int static int
cxgbit_xmit_nondatain_pdu(struct iscsi_conn *conn, struct iscsit_cmd *cmd, cxgbit_xmit_nondatain_pdu(struct iscsit_conn *conn, struct iscsit_cmd *cmd,
const void *data_buf, u32 data_buf_len) const void *data_buf, u32 data_buf_len)
{ {
struct cxgbit_sock *csk = conn->context; struct cxgbit_sock *csk = conn->context;
...@@ -560,7 +560,7 @@ cxgbit_xmit_nondatain_pdu(struct iscsi_conn *conn, struct iscsit_cmd *cmd, ...@@ -560,7 +560,7 @@ cxgbit_xmit_nondatain_pdu(struct iscsi_conn *conn, struct iscsit_cmd *cmd,
} }
int int
cxgbit_xmit_pdu(struct iscsi_conn *conn, struct iscsit_cmd *cmd, cxgbit_xmit_pdu(struct iscsit_conn *conn, struct iscsit_cmd *cmd,
struct iscsi_datain_req *dr, const void *buf, u32 buf_len) struct iscsi_datain_req *dr, const void *buf, u32 buf_len)
{ {
if (dr) if (dr)
...@@ -569,7 +569,7 @@ cxgbit_xmit_pdu(struct iscsi_conn *conn, struct iscsit_cmd *cmd, ...@@ -569,7 +569,7 @@ cxgbit_xmit_pdu(struct iscsi_conn *conn, struct iscsit_cmd *cmd,
return cxgbit_xmit_nondatain_pdu(conn, cmd, buf, buf_len); return cxgbit_xmit_nondatain_pdu(conn, cmd, buf, buf_len);
} }
int cxgbit_validate_params(struct iscsi_conn *conn) int cxgbit_validate_params(struct iscsit_conn *conn)
{ {
struct cxgbit_sock *csk = conn->context; struct cxgbit_sock *csk = conn->context;
struct cxgbit_device *cdev = csk->com.cdev; struct cxgbit_device *cdev = csk->com.cdev;
...@@ -595,7 +595,7 @@ int cxgbit_validate_params(struct iscsi_conn *conn) ...@@ -595,7 +595,7 @@ int cxgbit_validate_params(struct iscsi_conn *conn)
static int cxgbit_set_digest(struct cxgbit_sock *csk) static int cxgbit_set_digest(struct cxgbit_sock *csk)
{ {
struct iscsi_conn *conn = csk->conn; struct iscsit_conn *conn = csk->conn;
struct iscsi_param *param; struct iscsi_param *param;
param = iscsi_find_param_from_key(HEADERDIGEST, conn->param_list); param = iscsi_find_param_from_key(HEADERDIGEST, conn->param_list);
...@@ -627,7 +627,7 @@ static int cxgbit_set_digest(struct cxgbit_sock *csk) ...@@ -627,7 +627,7 @@ static int cxgbit_set_digest(struct cxgbit_sock *csk)
static int cxgbit_set_iso_npdu(struct cxgbit_sock *csk) static int cxgbit_set_iso_npdu(struct cxgbit_sock *csk)
{ {
struct iscsi_conn *conn = csk->conn; struct iscsit_conn *conn = csk->conn;
struct iscsi_conn_ops *conn_ops = conn->conn_ops; struct iscsi_conn_ops *conn_ops = conn->conn_ops;
struct iscsi_param *param; struct iscsi_param *param;
u32 mrdsl, mbl; u32 mrdsl, mbl;
...@@ -678,7 +678,7 @@ static int cxgbit_set_iso_npdu(struct cxgbit_sock *csk) ...@@ -678,7 +678,7 @@ static int cxgbit_set_iso_npdu(struct cxgbit_sock *csk)
*/ */
static int cxgbit_seq_pdu_inorder(struct cxgbit_sock *csk) static int cxgbit_seq_pdu_inorder(struct cxgbit_sock *csk)
{ {
struct iscsi_conn *conn = csk->conn; struct iscsit_conn *conn = csk->conn;
struct iscsi_param *param; struct iscsi_param *param;
if (conn->login->leading_connection) { if (conn->login->leading_connection) {
...@@ -712,7 +712,7 @@ static int cxgbit_seq_pdu_inorder(struct cxgbit_sock *csk) ...@@ -712,7 +712,7 @@ static int cxgbit_seq_pdu_inorder(struct cxgbit_sock *csk)
return 0; return 0;
} }
static int cxgbit_set_params(struct iscsi_conn *conn) static int cxgbit_set_params(struct iscsit_conn *conn)
{ {
struct cxgbit_sock *csk = conn->context; struct cxgbit_sock *csk = conn->context;
struct cxgbit_device *cdev = csk->com.cdev; struct cxgbit_device *cdev = csk->com.cdev;
...@@ -771,7 +771,7 @@ static int cxgbit_set_params(struct iscsi_conn *conn) ...@@ -771,7 +771,7 @@ static int cxgbit_set_params(struct iscsi_conn *conn)
} }
int int
cxgbit_put_login_tx(struct iscsi_conn *conn, struct iscsi_login *login, cxgbit_put_login_tx(struct iscsit_conn *conn, struct iscsi_login *login,
u32 length) u32 length)
{ {
struct cxgbit_sock *csk = conn->context; struct cxgbit_sock *csk = conn->context;
...@@ -834,7 +834,7 @@ cxgbit_skb_copy_to_sg(struct sk_buff *skb, struct scatterlist *sg, ...@@ -834,7 +834,7 @@ cxgbit_skb_copy_to_sg(struct sk_buff *skb, struct scatterlist *sg,
static struct iscsit_cmd *cxgbit_allocate_cmd(struct cxgbit_sock *csk) static struct iscsit_cmd *cxgbit_allocate_cmd(struct cxgbit_sock *csk)
{ {
struct iscsi_conn *conn = csk->conn; struct iscsit_conn *conn = csk->conn;
struct cxgbi_ppm *ppm = cdev2ppm(csk->com.cdev); struct cxgbi_ppm *ppm = cdev2ppm(csk->com.cdev);
struct cxgbit_cmd *ccmd; struct cxgbit_cmd *ccmd;
struct iscsit_cmd *cmd; struct iscsit_cmd *cmd;
...@@ -856,7 +856,7 @@ static int ...@@ -856,7 +856,7 @@ static int
cxgbit_handle_immediate_data(struct iscsit_cmd *cmd, struct iscsi_scsi_req *hdr, cxgbit_handle_immediate_data(struct iscsit_cmd *cmd, struct iscsi_scsi_req *hdr,
u32 length) u32 length)
{ {
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct cxgbit_sock *csk = conn->context; struct cxgbit_sock *csk = conn->context;
struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb); struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb);
...@@ -913,7 +913,7 @@ static int ...@@ -913,7 +913,7 @@ static int
cxgbit_get_immediate_data(struct iscsit_cmd *cmd, struct iscsi_scsi_req *hdr, cxgbit_get_immediate_data(struct iscsit_cmd *cmd, struct iscsi_scsi_req *hdr,
bool dump_payload) bool dump_payload)
{ {
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
int cmdsn_ret = 0, immed_ret = IMMEDIATE_DATA_NORMAL_OPERATION; int cmdsn_ret = 0, immed_ret = IMMEDIATE_DATA_NORMAL_OPERATION;
/* /*
* Special case for Unsupported SAM WRITE Opcodes and ImmediateData=Yes. * Special case for Unsupported SAM WRITE Opcodes and ImmediateData=Yes.
...@@ -966,7 +966,7 @@ cxgbit_get_immediate_data(struct iscsit_cmd *cmd, struct iscsi_scsi_req *hdr, ...@@ -966,7 +966,7 @@ cxgbit_get_immediate_data(struct iscsit_cmd *cmd, struct iscsi_scsi_req *hdr,
static int static int
cxgbit_handle_scsi_cmd(struct cxgbit_sock *csk, struct iscsit_cmd *cmd) cxgbit_handle_scsi_cmd(struct cxgbit_sock *csk, struct iscsit_cmd *cmd)
{ {
struct iscsi_conn *conn = csk->conn; struct iscsit_conn *conn = csk->conn;
struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb); struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb);
struct iscsi_scsi_req *hdr = (struct iscsi_scsi_req *)pdu_cb->hdr; struct iscsi_scsi_req *hdr = (struct iscsi_scsi_req *)pdu_cb->hdr;
int rc; int rc;
...@@ -995,7 +995,7 @@ cxgbit_handle_scsi_cmd(struct cxgbit_sock *csk, struct iscsit_cmd *cmd) ...@@ -995,7 +995,7 @@ cxgbit_handle_scsi_cmd(struct cxgbit_sock *csk, struct iscsit_cmd *cmd)
static int cxgbit_handle_iscsi_dataout(struct cxgbit_sock *csk) static int cxgbit_handle_iscsi_dataout(struct cxgbit_sock *csk)
{ {
struct scatterlist *sg_start; struct scatterlist *sg_start;
struct iscsi_conn *conn = csk->conn; struct iscsit_conn *conn = csk->conn;
struct iscsit_cmd *cmd = NULL; struct iscsit_cmd *cmd = NULL;
struct cxgbit_cmd *ccmd; struct cxgbit_cmd *ccmd;
struct cxgbi_task_tag_info *ttinfo; struct cxgbi_task_tag_info *ttinfo;
...@@ -1086,7 +1086,7 @@ static int cxgbit_handle_iscsi_dataout(struct cxgbit_sock *csk) ...@@ -1086,7 +1086,7 @@ static int cxgbit_handle_iscsi_dataout(struct cxgbit_sock *csk)
static int cxgbit_handle_nop_out(struct cxgbit_sock *csk, struct iscsit_cmd *cmd) static int cxgbit_handle_nop_out(struct cxgbit_sock *csk, struct iscsit_cmd *cmd)
{ {
struct iscsi_conn *conn = csk->conn; struct iscsit_conn *conn = csk->conn;
struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb); struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb);
struct iscsi_nopout *hdr = (struct iscsi_nopout *)pdu_cb->hdr; struct iscsi_nopout *hdr = (struct iscsi_nopout *)pdu_cb->hdr;
unsigned char *ping_data = NULL; unsigned char *ping_data = NULL;
...@@ -1154,7 +1154,7 @@ static int cxgbit_handle_nop_out(struct cxgbit_sock *csk, struct iscsit_cmd *cmd ...@@ -1154,7 +1154,7 @@ static int cxgbit_handle_nop_out(struct cxgbit_sock *csk, struct iscsit_cmd *cmd
static int static int
cxgbit_handle_text_cmd(struct cxgbit_sock *csk, struct iscsit_cmd *cmd) cxgbit_handle_text_cmd(struct cxgbit_sock *csk, struct iscsit_cmd *cmd)
{ {
struct iscsi_conn *conn = csk->conn; struct iscsit_conn *conn = csk->conn;
struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb); struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb);
struct iscsi_text *hdr = (struct iscsi_text *)pdu_cb->hdr; struct iscsi_text *hdr = (struct iscsi_text *)pdu_cb->hdr;
u32 payload_length = pdu_cb->dlen; u32 payload_length = pdu_cb->dlen;
...@@ -1209,7 +1209,7 @@ static int cxgbit_target_rx_opcode(struct cxgbit_sock *csk) ...@@ -1209,7 +1209,7 @@ static int cxgbit_target_rx_opcode(struct cxgbit_sock *csk)
{ {
struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb); struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb);
struct iscsi_hdr *hdr = (struct iscsi_hdr *)pdu_cb->hdr; struct iscsi_hdr *hdr = (struct iscsi_hdr *)pdu_cb->hdr;
struct iscsi_conn *conn = csk->conn; struct iscsit_conn *conn = csk->conn;
struct iscsit_cmd *cmd = NULL; struct iscsit_cmd *cmd = NULL;
u8 opcode = (hdr->opcode & ISCSI_OPCODE_MASK); u8 opcode = (hdr->opcode & ISCSI_OPCODE_MASK);
int ret = -EINVAL; int ret = -EINVAL;
...@@ -1286,7 +1286,7 @@ static int cxgbit_target_rx_opcode(struct cxgbit_sock *csk) ...@@ -1286,7 +1286,7 @@ static int cxgbit_target_rx_opcode(struct cxgbit_sock *csk)
static int cxgbit_rx_opcode(struct cxgbit_sock *csk) static int cxgbit_rx_opcode(struct cxgbit_sock *csk)
{ {
struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb); struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb);
struct iscsi_conn *conn = csk->conn; struct iscsit_conn *conn = csk->conn;
struct iscsi_hdr *hdr = pdu_cb->hdr; struct iscsi_hdr *hdr = pdu_cb->hdr;
u8 opcode; u8 opcode;
...@@ -1321,7 +1321,7 @@ static int cxgbit_rx_opcode(struct cxgbit_sock *csk) ...@@ -1321,7 +1321,7 @@ static int cxgbit_rx_opcode(struct cxgbit_sock *csk)
static int cxgbit_rx_login_pdu(struct cxgbit_sock *csk) static int cxgbit_rx_login_pdu(struct cxgbit_sock *csk)
{ {
struct iscsi_conn *conn = csk->conn; struct iscsit_conn *conn = csk->conn;
struct iscsi_login *login = conn->login; struct iscsi_login *login = conn->login;
struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb); struct cxgbit_lro_pdu_cb *pdu_cb = cxgbit_rx_pdu_cb(csk->skb);
struct iscsi_login_req *login_req; struct iscsi_login_req *login_req;
...@@ -1626,7 +1626,7 @@ static int cxgbit_wait_rxq(struct cxgbit_sock *csk) ...@@ -1626,7 +1626,7 @@ static int cxgbit_wait_rxq(struct cxgbit_sock *csk)
return -1; return -1;
} }
int cxgbit_get_login_rx(struct iscsi_conn *conn, struct iscsi_login *login) int cxgbit_get_login_rx(struct iscsit_conn *conn, struct iscsi_login *login)
{ {
struct cxgbit_sock *csk = conn->context; struct cxgbit_sock *csk = conn->context;
int ret = -1; int ret = -1;
...@@ -1642,7 +1642,7 @@ int cxgbit_get_login_rx(struct iscsi_conn *conn, struct iscsi_login *login) ...@@ -1642,7 +1642,7 @@ int cxgbit_get_login_rx(struct iscsi_conn *conn, struct iscsi_login *login)
return ret; return ret;
} }
void cxgbit_get_rx_pdu(struct iscsi_conn *conn) void cxgbit_get_rx_pdu(struct iscsit_conn *conn)
{ {
struct cxgbit_sock *csk = conn->context; struct cxgbit_sock *csk = conn->context;
......
This diff is collapsed.
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include <linux/spinlock.h> #include <linux/spinlock.h>
struct iscsit_cmd; struct iscsit_cmd;
struct iscsi_conn; struct iscsit_conn;
struct iscsi_np; struct iscsi_np;
struct iscsi_portal_group; struct iscsi_portal_group;
struct iscsi_session; struct iscsi_session;
...@@ -32,15 +32,15 @@ extern int iscsit_reset_np_thread(struct iscsi_np *, struct iscsi_tpg_np *, ...@@ -32,15 +32,15 @@ extern int iscsit_reset_np_thread(struct iscsi_np *, struct iscsi_tpg_np *,
extern int iscsit_del_np(struct iscsi_np *); extern int iscsit_del_np(struct iscsi_np *);
extern int iscsit_reject_cmd(struct iscsit_cmd *cmd, u8, unsigned char *); extern int iscsit_reject_cmd(struct iscsit_cmd *cmd, u8, unsigned char *);
extern void iscsit_set_unsolicited_dataout(struct iscsit_cmd *); extern void iscsit_set_unsolicited_dataout(struct iscsit_cmd *);
extern int iscsit_logout_closesession(struct iscsit_cmd *, struct iscsi_conn *); extern int iscsit_logout_closesession(struct iscsit_cmd *, struct iscsit_conn *);
extern int iscsit_logout_closeconnection(struct iscsit_cmd *, struct iscsi_conn *); extern int iscsit_logout_closeconnection(struct iscsit_cmd *, struct iscsit_conn *);
extern int iscsit_logout_removeconnforrecovery(struct iscsit_cmd *, struct iscsi_conn *); extern int iscsit_logout_removeconnforrecovery(struct iscsit_cmd *, struct iscsit_conn *);
extern int iscsit_send_async_msg(struct iscsi_conn *, u16, u8, u8); extern int iscsit_send_async_msg(struct iscsit_conn *, u16, u8, u8);
extern int iscsit_build_r2ts_for_cmd(struct iscsi_conn *, struct iscsit_cmd *, bool recovery); extern int iscsit_build_r2ts_for_cmd(struct iscsit_conn *, struct iscsit_cmd *, bool recovery);
extern void iscsit_thread_get_cpumask(struct iscsi_conn *); extern void iscsit_thread_get_cpumask(struct iscsit_conn *);
extern int iscsi_target_tx_thread(void *); extern int iscsi_target_tx_thread(void *);
extern int iscsi_target_rx_thread(void *); extern int iscsi_target_rx_thread(void *);
extern int iscsit_close_connection(struct iscsi_conn *); extern int iscsit_close_connection(struct iscsit_conn *);
extern int iscsit_close_session(struct iscsi_session *, bool can_sleep); extern int iscsit_close_session(struct iscsi_session *, bool can_sleep);
extern void iscsit_fail_session(struct iscsi_session *); extern void iscsit_fail_session(struct iscsi_session *);
extern void iscsit_stop_session(struct iscsi_session *, int, int); extern void iscsit_stop_session(struct iscsi_session *, int, int);
......
...@@ -35,7 +35,7 @@ static char *chap_get_digest_name(const int digest_type) ...@@ -35,7 +35,7 @@ static char *chap_get_digest_name(const int digest_type)
} }
static int chap_gen_challenge( static int chap_gen_challenge(
struct iscsi_conn *conn, struct iscsit_conn *conn,
int caller, int caller,
char *c_str, char *c_str,
unsigned int *c_len) unsigned int *c_len)
...@@ -128,14 +128,14 @@ static int chap_check_algorithm(const char *a_str) ...@@ -128,14 +128,14 @@ static int chap_check_algorithm(const char *a_str)
return r; return r;
} }
static void chap_close(struct iscsi_conn *conn) static void chap_close(struct iscsit_conn *conn)
{ {
kfree(conn->auth_protocol); kfree(conn->auth_protocol);
conn->auth_protocol = NULL; conn->auth_protocol = NULL;
} }
static struct iscsi_chap *chap_server_open( static struct iscsi_chap *chap_server_open(
struct iscsi_conn *conn, struct iscsit_conn *conn,
struct iscsi_node_auth *auth, struct iscsi_node_auth *auth,
const char *a_str, const char *a_str,
char *aic_str, char *aic_str,
...@@ -206,7 +206,7 @@ static struct iscsi_chap *chap_server_open( ...@@ -206,7 +206,7 @@ static struct iscsi_chap *chap_server_open(
} }
static int chap_server_compute_hash( static int chap_server_compute_hash(
struct iscsi_conn *conn, struct iscsit_conn *conn,
struct iscsi_node_auth *auth, struct iscsi_node_auth *auth,
char *nr_in_ptr, char *nr_in_ptr,
char *nr_out_ptr, char *nr_out_ptr,
...@@ -497,7 +497,7 @@ static int chap_server_compute_hash( ...@@ -497,7 +497,7 @@ static int chap_server_compute_hash(
} }
u32 chap_main_loop( u32 chap_main_loop(
struct iscsi_conn *conn, struct iscsit_conn *conn,
struct iscsi_node_auth *auth, struct iscsi_node_auth *auth,
char *in_text, char *in_text,
char *out_text, char *out_text,
......
...@@ -27,9 +27,9 @@ ...@@ -27,9 +27,9 @@
#define CHAP_STAGE_SERVER_NR 5 #define CHAP_STAGE_SERVER_NR 5
struct iscsi_node_auth; struct iscsi_node_auth;
struct iscsi_conn; struct iscsit_conn;
extern u32 chap_main_loop(struct iscsi_conn *, struct iscsi_node_auth *, char *, char *, extern u32 chap_main_loop(struct iscsit_conn *, struct iscsi_node_auth *, char *, char *,
int *, int *); int *, int *);
struct iscsi_chap { struct iscsi_chap {
......
...@@ -499,7 +499,7 @@ static ssize_t lio_target_nacl_info_show(struct config_item *item, char *page) ...@@ -499,7 +499,7 @@ static ssize_t lio_target_nacl_info_show(struct config_item *item, char *page)
{ {
struct se_node_acl *se_nacl = acl_to_nacl(item); struct se_node_acl *se_nacl = acl_to_nacl(item);
struct iscsi_session *sess; struct iscsi_session *sess;
struct iscsi_conn *conn; struct iscsit_conn *conn;
struct se_session *se_sess; struct se_session *se_sess;
ssize_t rb = 0; ssize_t rb = 0;
u32 max_cmd_sn; u32 max_cmd_sn;
...@@ -1367,7 +1367,7 @@ static u32 lio_sess_get_initiator_sid( ...@@ -1367,7 +1367,7 @@ static u32 lio_sess_get_initiator_sid(
static int lio_queue_data_in(struct se_cmd *se_cmd) static int lio_queue_data_in(struct se_cmd *se_cmd)
{ {
struct iscsit_cmd *cmd = container_of(se_cmd, struct iscsit_cmd, se_cmd); struct iscsit_cmd *cmd = container_of(se_cmd, struct iscsit_cmd, se_cmd);
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
cmd->i_state = ISTATE_SEND_DATAIN; cmd->i_state = ISTATE_SEND_DATAIN;
return conn->conn_transport->iscsit_queue_data_in(conn, cmd); return conn->conn_transport->iscsit_queue_data_in(conn, cmd);
...@@ -1376,7 +1376,7 @@ static int lio_queue_data_in(struct se_cmd *se_cmd) ...@@ -1376,7 +1376,7 @@ static int lio_queue_data_in(struct se_cmd *se_cmd)
static int lio_write_pending(struct se_cmd *se_cmd) static int lio_write_pending(struct se_cmd *se_cmd)
{ {
struct iscsit_cmd *cmd = container_of(se_cmd, struct iscsit_cmd, se_cmd); struct iscsit_cmd *cmd = container_of(se_cmd, struct iscsit_cmd, se_cmd);
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
if (!cmd->immediate_data && !cmd->unsolicited_data) if (!cmd->immediate_data && !cmd->unsolicited_data)
return conn->conn_transport->iscsit_get_dataout(conn, cmd, false); return conn->conn_transport->iscsit_get_dataout(conn, cmd, false);
...@@ -1387,7 +1387,7 @@ static int lio_write_pending(struct se_cmd *se_cmd) ...@@ -1387,7 +1387,7 @@ static int lio_write_pending(struct se_cmd *se_cmd)
static int lio_queue_status(struct se_cmd *se_cmd) static int lio_queue_status(struct se_cmd *se_cmd)
{ {
struct iscsit_cmd *cmd = container_of(se_cmd, struct iscsit_cmd, se_cmd); struct iscsit_cmd *cmd = container_of(se_cmd, struct iscsit_cmd, se_cmd);
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
cmd->i_state = ISTATE_SEND_STATUS; cmd->i_state = ISTATE_SEND_STATUS;
......
...@@ -80,7 +80,7 @@ static struct iscsi_datain_req *iscsit_set_datain_values_yes_and_yes( ...@@ -80,7 +80,7 @@ static struct iscsi_datain_req *iscsit_set_datain_values_yes_and_yes(
struct iscsi_datain *datain) struct iscsi_datain *datain)
{ {
u32 next_burst_len, read_data_done, read_data_left; u32 next_burst_len, read_data_done, read_data_left;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_datain_req *dr; struct iscsi_datain_req *dr;
dr = iscsit_get_datain_req(cmd); dr = iscsit_get_datain_req(cmd);
...@@ -178,7 +178,7 @@ static struct iscsi_datain_req *iscsit_set_datain_values_no_and_yes( ...@@ -178,7 +178,7 @@ static struct iscsi_datain_req *iscsit_set_datain_values_no_and_yes(
struct iscsi_datain *datain) struct iscsi_datain *datain)
{ {
u32 offset, read_data_done, read_data_left, seq_send_order; u32 offset, read_data_done, read_data_left, seq_send_order;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_datain_req *dr; struct iscsi_datain_req *dr;
struct iscsi_seq *seq; struct iscsi_seq *seq;
...@@ -299,7 +299,7 @@ static struct iscsi_datain_req *iscsit_set_datain_values_yes_and_no( ...@@ -299,7 +299,7 @@ static struct iscsi_datain_req *iscsit_set_datain_values_yes_and_no(
struct iscsi_datain *datain) struct iscsi_datain *datain)
{ {
u32 next_burst_len, read_data_done, read_data_left; u32 next_burst_len, read_data_done, read_data_left;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_datain_req *dr; struct iscsi_datain_req *dr;
struct iscsi_pdu *pdu; struct iscsi_pdu *pdu;
...@@ -398,7 +398,7 @@ static struct iscsi_datain_req *iscsit_set_datain_values_no_and_no( ...@@ -398,7 +398,7 @@ static struct iscsi_datain_req *iscsit_set_datain_values_no_and_no(
struct iscsi_datain *datain) struct iscsi_datain *datain)
{ {
u32 read_data_done, read_data_left, seq_send_order; u32 read_data_done, read_data_left, seq_send_order;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_datain_req *dr; struct iscsi_datain_req *dr;
struct iscsi_pdu *pdu; struct iscsi_pdu *pdu;
struct iscsi_seq *seq = NULL; struct iscsi_seq *seq = NULL;
...@@ -499,7 +499,7 @@ struct iscsi_datain_req *iscsit_get_datain_values( ...@@ -499,7 +499,7 @@ struct iscsi_datain_req *iscsit_get_datain_values(
struct iscsit_cmd *cmd, struct iscsit_cmd *cmd,
struct iscsi_datain *datain) struct iscsi_datain *datain)
{ {
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
if (conn->sess->sess_ops->DataSequenceInOrder && if (conn->sess->sess_ops->DataSequenceInOrder &&
conn->sess->sess_ops->DataPDUInOrder) conn->sess->sess_ops->DataPDUInOrder)
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
void iscsit_set_dataout_sequence_values( void iscsit_set_dataout_sequence_values(
struct iscsit_cmd *cmd) struct iscsit_cmd *cmd)
{ {
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
/* /*
* Still set seq_start_offset and seq_end_offset for Unsolicited * Still set seq_start_offset and seq_end_offset for Unsolicited
* DataOUT, even if DataSequenceInOrder=No. * DataOUT, even if DataSequenceInOrder=No.
...@@ -66,7 +66,7 @@ static int iscsit_dataout_within_command_recovery_check( ...@@ -66,7 +66,7 @@ static int iscsit_dataout_within_command_recovery_check(
struct iscsit_cmd *cmd, struct iscsit_cmd *cmd,
unsigned char *buf) unsigned char *buf)
{ {
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_data *hdr = (struct iscsi_data *) buf; struct iscsi_data *hdr = (struct iscsi_data *) buf;
u32 payload_length = ntoh24(hdr->dlength); u32 payload_length = ntoh24(hdr->dlength);
...@@ -133,7 +133,7 @@ static int iscsit_dataout_check_unsolicited_sequence( ...@@ -133,7 +133,7 @@ static int iscsit_dataout_check_unsolicited_sequence(
unsigned char *buf) unsigned char *buf)
{ {
u32 first_burst_len; u32 first_burst_len;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_data *hdr = (struct iscsi_data *) buf; struct iscsi_data *hdr = (struct iscsi_data *) buf;
u32 payload_length = ntoh24(hdr->dlength); u32 payload_length = ntoh24(hdr->dlength);
...@@ -208,7 +208,7 @@ static int iscsit_dataout_check_sequence( ...@@ -208,7 +208,7 @@ static int iscsit_dataout_check_sequence(
unsigned char *buf) unsigned char *buf)
{ {
u32 next_burst_len; u32 next_burst_len;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_seq *seq = NULL; struct iscsi_seq *seq = NULL;
struct iscsi_data *hdr = (struct iscsi_data *) buf; struct iscsi_data *hdr = (struct iscsi_data *) buf;
u32 payload_length = ntoh24(hdr->dlength); u32 payload_length = ntoh24(hdr->dlength);
...@@ -337,7 +337,7 @@ static int iscsit_dataout_check_datasn( ...@@ -337,7 +337,7 @@ static int iscsit_dataout_check_datasn(
unsigned char *buf) unsigned char *buf)
{ {
u32 data_sn = 0; u32 data_sn = 0;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_data *hdr = (struct iscsi_data *) buf; struct iscsi_data *hdr = (struct iscsi_data *) buf;
u32 payload_length = ntoh24(hdr->dlength); u32 payload_length = ntoh24(hdr->dlength);
...@@ -388,7 +388,7 @@ static int iscsit_dataout_pre_datapduinorder_yes( ...@@ -388,7 +388,7 @@ static int iscsit_dataout_pre_datapduinorder_yes(
unsigned char *buf) unsigned char *buf)
{ {
int dump = 0, recovery = 0; int dump = 0, recovery = 0;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_data *hdr = (struct iscsi_data *) buf; struct iscsi_data *hdr = (struct iscsi_data *) buf;
u32 payload_length = ntoh24(hdr->dlength); u32 payload_length = ntoh24(hdr->dlength);
...@@ -534,7 +534,7 @@ static int iscsit_dataout_post_crc_passed( ...@@ -534,7 +534,7 @@ static int iscsit_dataout_post_crc_passed(
unsigned char *buf) unsigned char *buf)
{ {
int ret, send_r2t = 0; int ret, send_r2t = 0;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_seq *seq = NULL; struct iscsi_seq *seq = NULL;
struct iscsi_data *hdr = (struct iscsi_data *) buf; struct iscsi_data *hdr = (struct iscsi_data *) buf;
u32 payload_length = ntoh24(hdr->dlength); u32 payload_length = ntoh24(hdr->dlength);
...@@ -644,7 +644,7 @@ static int iscsit_dataout_post_crc_failed( ...@@ -644,7 +644,7 @@ static int iscsit_dataout_post_crc_failed(
struct iscsit_cmd *cmd, struct iscsit_cmd *cmd,
unsigned char *buf) unsigned char *buf)
{ {
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_pdu *pdu; struct iscsi_pdu *pdu;
struct iscsi_data *hdr = (struct iscsi_data *) buf; struct iscsi_data *hdr = (struct iscsi_data *) buf;
u32 payload_length = ntoh24(hdr->dlength); u32 payload_length = ntoh24(hdr->dlength);
...@@ -683,7 +683,7 @@ int iscsit_check_pre_dataout( ...@@ -683,7 +683,7 @@ int iscsit_check_pre_dataout(
unsigned char *buf) unsigned char *buf)
{ {
int ret; int ret;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
ret = iscsit_dataout_within_command_recovery_check(cmd, buf); ret = iscsit_dataout_within_command_recovery_check(cmd, buf);
if ((ret == DATAOUT_WITHIN_COMMAND_RECOVERY) || if ((ret == DATAOUT_WITHIN_COMMAND_RECOVERY) ||
...@@ -721,7 +721,7 @@ int iscsit_check_post_dataout( ...@@ -721,7 +721,7 @@ int iscsit_check_post_dataout(
unsigned char *buf, unsigned char *buf,
u8 data_crc_failed) u8 data_crc_failed)
{ {
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
cmd->dataout_timeout_retries = 0; cmd->dataout_timeout_retries = 0;
...@@ -819,7 +819,7 @@ int iscsit_stop_time2retain_timer(struct iscsi_session *sess) ...@@ -819,7 +819,7 @@ int iscsit_stop_time2retain_timer(struct iscsi_session *sess)
return 0; return 0;
} }
void iscsit_connection_reinstatement_rcfr(struct iscsi_conn *conn) void iscsit_connection_reinstatement_rcfr(struct iscsit_conn *conn)
{ {
spin_lock_bh(&conn->state_lock); spin_lock_bh(&conn->state_lock);
if (atomic_read(&conn->connection_exit)) { if (atomic_read(&conn->connection_exit)) {
...@@ -843,7 +843,7 @@ void iscsit_connection_reinstatement_rcfr(struct iscsi_conn *conn) ...@@ -843,7 +843,7 @@ void iscsit_connection_reinstatement_rcfr(struct iscsi_conn *conn)
complete(&conn->conn_post_wait_comp); complete(&conn->conn_post_wait_comp);
} }
void iscsit_cause_connection_reinstatement(struct iscsi_conn *conn, int sleep) void iscsit_cause_connection_reinstatement(struct iscsit_conn *conn, int sleep)
{ {
spin_lock_bh(&conn->state_lock); spin_lock_bh(&conn->state_lock);
if (atomic_read(&conn->connection_exit)) { if (atomic_read(&conn->connection_exit)) {
...@@ -888,7 +888,7 @@ void iscsit_fall_back_to_erl0(struct iscsi_session *sess) ...@@ -888,7 +888,7 @@ void iscsit_fall_back_to_erl0(struct iscsi_session *sess)
atomic_set(&sess->session_fall_back_to_erl0, 1); atomic_set(&sess->session_fall_back_to_erl0, 1);
} }
static void iscsit_handle_connection_cleanup(struct iscsi_conn *conn) static void iscsit_handle_connection_cleanup(struct iscsit_conn *conn)
{ {
struct iscsi_session *sess = conn->sess; struct iscsi_session *sess = conn->sess;
...@@ -904,7 +904,7 @@ static void iscsit_handle_connection_cleanup(struct iscsi_conn *conn) ...@@ -904,7 +904,7 @@ static void iscsit_handle_connection_cleanup(struct iscsi_conn *conn)
} }
} }
void iscsit_take_action_for_connection_exit(struct iscsi_conn *conn, bool *conn_freed) void iscsit_take_action_for_connection_exit(struct iscsit_conn *conn, bool *conn_freed)
{ {
*conn_freed = false; *conn_freed = false;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <linux/types.h> #include <linux/types.h>
struct iscsit_cmd; struct iscsit_cmd;
struct iscsi_conn; struct iscsit_conn;
struct iscsi_session; struct iscsi_session;
extern void iscsit_set_dataout_sequence_values(struct iscsit_cmd *); extern void iscsit_set_dataout_sequence_values(struct iscsit_cmd *);
...@@ -14,9 +14,9 @@ extern int iscsit_check_post_dataout(struct iscsit_cmd *, unsigned char *, u8); ...@@ -14,9 +14,9 @@ extern int iscsit_check_post_dataout(struct iscsit_cmd *, unsigned char *, u8);
extern void iscsit_start_time2retain_handler(struct iscsi_session *); extern void iscsit_start_time2retain_handler(struct iscsi_session *);
extern void iscsit_handle_time2retain_timeout(struct timer_list *t); extern void iscsit_handle_time2retain_timeout(struct timer_list *t);
extern int iscsit_stop_time2retain_timer(struct iscsi_session *); extern int iscsit_stop_time2retain_timer(struct iscsi_session *);
extern void iscsit_connection_reinstatement_rcfr(struct iscsi_conn *); extern void iscsit_connection_reinstatement_rcfr(struct iscsit_conn *);
extern void iscsit_cause_connection_reinstatement(struct iscsi_conn *, int); extern void iscsit_cause_connection_reinstatement(struct iscsit_conn *, int);
extern void iscsit_fall_back_to_erl0(struct iscsi_session *); extern void iscsit_fall_back_to_erl0(struct iscsi_session *);
extern void iscsit_take_action_for_connection_exit(struct iscsi_conn *, bool *); extern void iscsit_take_action_for_connection_exit(struct iscsit_conn *, bool *);
#endif /*** ISCSI_TARGET_ERL0_H ***/ #endif /*** ISCSI_TARGET_ERL0_H ***/
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
* to be dumped. * to be dumped.
*/ */
int iscsit_dump_data_payload( int iscsit_dump_data_payload(
struct iscsi_conn *conn, struct iscsit_conn *conn,
u32 buf_len, u32 buf_len,
int dump_padding_digest) int dump_padding_digest)
{ {
...@@ -173,7 +173,7 @@ int iscsit_create_recovery_datain_values_datasequenceinorder_yes( ...@@ -173,7 +173,7 @@ int iscsit_create_recovery_datain_values_datasequenceinorder_yes(
u32 data_sn = 0, data_sn_count = 0; u32 data_sn = 0, data_sn_count = 0;
u32 pdu_start = 0, seq_no = 0; u32 pdu_start = 0, seq_no = 0;
u32 begrun = dr->begrun; u32 begrun = dr->begrun;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
while (begrun > data_sn++) { while (begrun > data_sn++) {
data_sn_count++; data_sn_count++;
...@@ -220,7 +220,7 @@ int iscsit_create_recovery_datain_values_datasequenceinorder_no( ...@@ -220,7 +220,7 @@ int iscsit_create_recovery_datain_values_datasequenceinorder_no(
u32 data_sn, read_data_done = 0, seq_send_order = 0; u32 data_sn, read_data_done = 0, seq_send_order = 0;
u32 begrun = dr->begrun; u32 begrun = dr->begrun;
u32 runlength = dr->runlength; u32 runlength = dr->runlength;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_seq *first_seq = NULL, *seq = NULL; struct iscsi_seq *first_seq = NULL, *seq = NULL;
if (!cmd->seq_list) { if (!cmd->seq_list) {
...@@ -376,7 +376,7 @@ static int iscsit_handle_recovery_datain( ...@@ -376,7 +376,7 @@ static int iscsit_handle_recovery_datain(
u32 begrun, u32 begrun,
u32 runlength) u32 runlength)
{ {
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_datain_req *dr; struct iscsi_datain_req *dr;
struct se_cmd *se_cmd = &cmd->se_cmd; struct se_cmd *se_cmd = &cmd->se_cmd;
...@@ -432,7 +432,7 @@ static int iscsit_handle_recovery_datain( ...@@ -432,7 +432,7 @@ static int iscsit_handle_recovery_datain(
} }
int iscsit_handle_recovery_datain_or_r2t( int iscsit_handle_recovery_datain_or_r2t(
struct iscsi_conn *conn, struct iscsit_conn *conn,
unsigned char *buf, unsigned char *buf,
itt_t init_task_tag, itt_t init_task_tag,
u32 targ_xfer_tag, u32 targ_xfer_tag,
...@@ -465,7 +465,7 @@ int iscsit_handle_recovery_datain_or_r2t( ...@@ -465,7 +465,7 @@ int iscsit_handle_recovery_datain_or_r2t(
/* #warning FIXME: Status SNACK needs to be dependent on OPCODE!!! */ /* #warning FIXME: Status SNACK needs to be dependent on OPCODE!!! */
int iscsit_handle_status_snack( int iscsit_handle_status_snack(
struct iscsi_conn *conn, struct iscsit_conn *conn,
itt_t init_task_tag, itt_t init_task_tag,
u32 targ_xfer_tag, u32 targ_xfer_tag,
u32 begrun, u32 begrun,
...@@ -529,7 +529,7 @@ int iscsit_handle_status_snack( ...@@ -529,7 +529,7 @@ int iscsit_handle_status_snack(
} }
int iscsit_handle_data_ack( int iscsit_handle_data_ack(
struct iscsi_conn *conn, struct iscsit_conn *conn,
u32 targ_xfer_tag, u32 targ_xfer_tag,
u32 begrun, u32 begrun,
u32 runlength) u32 runlength)
...@@ -584,7 +584,7 @@ int iscsit_dataout_datapduinorder_no_fbit( ...@@ -584,7 +584,7 @@ int iscsit_dataout_datapduinorder_no_fbit(
{ {
int i, send_recovery_r2t = 0, recovery = 0; int i, send_recovery_r2t = 0, recovery = 0;
u32 length = 0, offset = 0, pdu_count = 0, xfer_len = 0; u32 length = 0, offset = 0, pdu_count = 0, xfer_len = 0;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_pdu *first_pdu = NULL; struct iscsi_pdu *first_pdu = NULL;
/* /*
...@@ -662,7 +662,7 @@ static int iscsit_recalculate_dataout_values( ...@@ -662,7 +662,7 @@ static int iscsit_recalculate_dataout_values(
u32 *r2t_length) u32 *r2t_length)
{ {
int i; int i;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_pdu *pdu = NULL; struct iscsi_pdu *pdu = NULL;
if (conn->sess->sess_ops->DataSequenceInOrder) { if (conn->sess->sess_ops->DataSequenceInOrder) {
...@@ -825,7 +825,7 @@ void iscsit_remove_ooo_cmdsn( ...@@ -825,7 +825,7 @@ void iscsit_remove_ooo_cmdsn(
kmem_cache_free(lio_ooo_cache, ooo_cmdsn); kmem_cache_free(lio_ooo_cache, ooo_cmdsn);
} }
void iscsit_clear_ooo_cmdsns_for_conn(struct iscsi_conn *conn) void iscsit_clear_ooo_cmdsns_for_conn(struct iscsit_conn *conn)
{ {
struct iscsi_ooo_cmdsn *ooo_cmdsn; struct iscsi_ooo_cmdsn *ooo_cmdsn;
struct iscsi_session *sess = conn->sess; struct iscsi_session *sess = conn->sess;
...@@ -887,7 +887,7 @@ int iscsit_execute_ooo_cmdsns(struct iscsi_session *sess) ...@@ -887,7 +887,7 @@ int iscsit_execute_ooo_cmdsns(struct iscsi_session *sess)
int iscsit_execute_cmd(struct iscsit_cmd *cmd, int ooo) int iscsit_execute_cmd(struct iscsit_cmd *cmd, int ooo)
{ {
struct se_cmd *se_cmd = &cmd->se_cmd; struct se_cmd *se_cmd = &cmd->se_cmd;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
int lr = 0; int lr = 0;
spin_lock_bh(&cmd->istate_lock); spin_lock_bh(&cmd->istate_lock);
...@@ -1053,7 +1053,7 @@ static int iscsit_set_dataout_timeout_values( ...@@ -1053,7 +1053,7 @@ static int iscsit_set_dataout_timeout_values(
u32 *offset, u32 *offset,
u32 *length) u32 *length)
{ {
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_r2t *r2t; struct iscsi_r2t *r2t;
if (cmd->unsolicited_data) { if (cmd->unsolicited_data) {
...@@ -1096,7 +1096,7 @@ void iscsit_handle_dataout_timeout(struct timer_list *t) ...@@ -1096,7 +1096,7 @@ void iscsit_handle_dataout_timeout(struct timer_list *t)
u32 pdu_length = 0, pdu_offset = 0; u32 pdu_length = 0, pdu_offset = 0;
u32 r2t_length = 0, r2t_offset = 0; u32 r2t_length = 0, r2t_offset = 0;
struct iscsit_cmd *cmd = from_timer(cmd, t, dataout_timer); struct iscsit_cmd *cmd = from_timer(cmd, t, dataout_timer);
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_session *sess = NULL; struct iscsi_session *sess = NULL;
struct iscsi_node_attrib *na; struct iscsi_node_attrib *na;
...@@ -1181,7 +1181,7 @@ void iscsit_handle_dataout_timeout(struct timer_list *t) ...@@ -1181,7 +1181,7 @@ void iscsit_handle_dataout_timeout(struct timer_list *t)
void iscsit_mod_dataout_timer(struct iscsit_cmd *cmd) void iscsit_mod_dataout_timer(struct iscsit_cmd *cmd)
{ {
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_session *sess = conn->sess; struct iscsi_session *sess = conn->sess;
struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess); struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess);
...@@ -1200,7 +1200,7 @@ void iscsit_mod_dataout_timer(struct iscsit_cmd *cmd) ...@@ -1200,7 +1200,7 @@ void iscsit_mod_dataout_timer(struct iscsit_cmd *cmd)
void iscsit_start_dataout_timer( void iscsit_start_dataout_timer(
struct iscsit_cmd *cmd, struct iscsit_cmd *cmd,
struct iscsi_conn *conn) struct iscsit_conn *conn)
{ {
struct iscsi_session *sess = conn->sess; struct iscsi_session *sess = conn->sess;
struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess); struct iscsi_node_attrib *na = iscsit_tpg_get_node_attrib(sess);
......
...@@ -6,25 +6,25 @@ ...@@ -6,25 +6,25 @@
#include <scsi/iscsi_proto.h> /* itt_t */ #include <scsi/iscsi_proto.h> /* itt_t */
struct iscsit_cmd; struct iscsit_cmd;
struct iscsi_conn; struct iscsit_conn;
struct iscsi_datain_req; struct iscsi_datain_req;
struct iscsi_ooo_cmdsn; struct iscsi_ooo_cmdsn;
struct iscsi_pdu; struct iscsi_pdu;
struct iscsi_session; struct iscsi_session;
extern int iscsit_dump_data_payload(struct iscsi_conn *, u32, int); extern int iscsit_dump_data_payload(struct iscsit_conn *, u32, int);
extern int iscsit_create_recovery_datain_values_datasequenceinorder_yes( extern int iscsit_create_recovery_datain_values_datasequenceinorder_yes(
struct iscsit_cmd *, struct iscsi_datain_req *); struct iscsit_cmd *, struct iscsi_datain_req *);
extern int iscsit_create_recovery_datain_values_datasequenceinorder_no( extern int iscsit_create_recovery_datain_values_datasequenceinorder_no(
struct iscsit_cmd *, struct iscsi_datain_req *); struct iscsit_cmd *, struct iscsi_datain_req *);
extern int iscsit_handle_recovery_datain_or_r2t(struct iscsi_conn *, unsigned char *, extern int iscsit_handle_recovery_datain_or_r2t(struct iscsit_conn *, unsigned char *,
itt_t, u32, u32, u32); itt_t, u32, u32, u32);
extern int iscsit_handle_status_snack(struct iscsi_conn *, itt_t, u32, extern int iscsit_handle_status_snack(struct iscsit_conn *, itt_t, u32,
u32, u32); u32, u32);
extern int iscsit_handle_data_ack(struct iscsi_conn *, u32, u32, u32); extern int iscsit_handle_data_ack(struct iscsit_conn *, u32, u32, u32);
extern int iscsit_dataout_datapduinorder_no_fbit(struct iscsit_cmd *, struct iscsi_pdu *); extern int iscsit_dataout_datapduinorder_no_fbit(struct iscsit_cmd *, struct iscsi_pdu *);
extern int iscsit_recover_dataout_sequence(struct iscsit_cmd *, u32, u32); extern int iscsit_recover_dataout_sequence(struct iscsit_cmd *, u32, u32);
extern void iscsit_clear_ooo_cmdsns_for_conn(struct iscsi_conn *); extern void iscsit_clear_ooo_cmdsns_for_conn(struct iscsit_conn *);
extern void iscsit_free_all_ooo_cmdsns(struct iscsi_session *); extern void iscsit_free_all_ooo_cmdsns(struct iscsi_session *);
extern int iscsit_execute_ooo_cmdsns(struct iscsi_session *); extern int iscsit_execute_ooo_cmdsns(struct iscsi_session *);
extern int iscsit_execute_cmd(struct iscsit_cmd *, int); extern int iscsit_execute_cmd(struct iscsit_cmd *, int);
...@@ -32,7 +32,7 @@ extern int iscsit_handle_ooo_cmdsn(struct iscsi_session *, struct iscsit_cmd *, ...@@ -32,7 +32,7 @@ extern int iscsit_handle_ooo_cmdsn(struct iscsi_session *, struct iscsit_cmd *,
extern void iscsit_remove_ooo_cmdsn(struct iscsi_session *, struct iscsi_ooo_cmdsn *); extern void iscsit_remove_ooo_cmdsn(struct iscsi_session *, struct iscsi_ooo_cmdsn *);
extern void iscsit_handle_dataout_timeout(struct timer_list *t); extern void iscsit_handle_dataout_timeout(struct timer_list *t);
extern void iscsit_mod_dataout_timer(struct iscsit_cmd *); extern void iscsit_mod_dataout_timer(struct iscsit_cmd *);
extern void iscsit_start_dataout_timer(struct iscsit_cmd *, struct iscsi_conn *); extern void iscsit_start_dataout_timer(struct iscsit_cmd *, struct iscsit_conn *);
extern void iscsit_stop_dataout_timer(struct iscsit_cmd *); extern void iscsit_stop_dataout_timer(struct iscsit_cmd *);
#endif /* ISCSI_TARGET_ERL1_H */ #endif /* ISCSI_TARGET_ERL1_H */
...@@ -30,7 +30,7 @@ void iscsit_create_conn_recovery_datain_values( ...@@ -30,7 +30,7 @@ void iscsit_create_conn_recovery_datain_values(
__be32 exp_data_sn) __be32 exp_data_sn)
{ {
u32 data_sn = 0; u32 data_sn = 0;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
cmd->next_burst_len = 0; cmd->next_burst_len = 0;
cmd->read_data_done = 0; cmd->read_data_done = 0;
...@@ -57,7 +57,7 @@ void iscsit_create_conn_recovery_dataout_values( ...@@ -57,7 +57,7 @@ void iscsit_create_conn_recovery_dataout_values(
struct iscsit_cmd *cmd) struct iscsit_cmd *cmd)
{ {
u32 write_data_done = 0; u32 write_data_done = 0;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
cmd->data_sn = 0; cmd->data_sn = 0;
cmd->next_burst_len = 0; cmd->next_burst_len = 0;
...@@ -263,7 +263,7 @@ void iscsit_discard_cr_cmds_by_expstatsn( ...@@ -263,7 +263,7 @@ void iscsit_discard_cr_cmds_by_expstatsn(
} }
} }
int iscsit_discard_unacknowledged_ooo_cmdsns_for_conn(struct iscsi_conn *conn) int iscsit_discard_unacknowledged_ooo_cmdsns_for_conn(struct iscsit_conn *conn)
{ {
u32 dropped_count = 0; u32 dropped_count = 0;
struct iscsit_cmd *cmd, *cmd_tmp; struct iscsit_cmd *cmd, *cmd_tmp;
...@@ -304,7 +304,7 @@ int iscsit_discard_unacknowledged_ooo_cmdsns_for_conn(struct iscsi_conn *conn) ...@@ -304,7 +304,7 @@ int iscsit_discard_unacknowledged_ooo_cmdsns_for_conn(struct iscsi_conn *conn)
return 0; return 0;
} }
int iscsit_prepare_cmds_for_reallegiance(struct iscsi_conn *conn) int iscsit_prepare_cmds_for_reallegiance(struct iscsit_conn *conn)
{ {
u32 cmd_count = 0; u32 cmd_count = 0;
struct iscsit_cmd *cmd, *cmd_tmp; struct iscsit_cmd *cmd, *cmd_tmp;
...@@ -418,7 +418,7 @@ int iscsit_prepare_cmds_for_reallegiance(struct iscsi_conn *conn) ...@@ -418,7 +418,7 @@ int iscsit_prepare_cmds_for_reallegiance(struct iscsi_conn *conn)
return 0; return 0;
} }
int iscsit_connection_recovery_transport_reset(struct iscsi_conn *conn) int iscsit_connection_recovery_transport_reset(struct iscsit_conn *conn)
{ {
atomic_set(&conn->connection_recovery, 1); atomic_set(&conn->connection_recovery, 1);
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <linux/types.h> #include <linux/types.h>
struct iscsit_cmd; struct iscsit_cmd;
struct iscsi_conn; struct iscsit_conn;
struct iscsi_conn_recovery; struct iscsi_conn_recovery;
struct iscsi_session; struct iscsi_session;
...@@ -19,8 +19,8 @@ extern int iscsit_remove_active_connection_recovery_entry( ...@@ -19,8 +19,8 @@ extern int iscsit_remove_active_connection_recovery_entry(
extern int iscsit_remove_cmd_from_connection_recovery(struct iscsit_cmd *, extern int iscsit_remove_cmd_from_connection_recovery(struct iscsit_cmd *,
struct iscsi_session *); struct iscsi_session *);
extern void iscsit_discard_cr_cmds_by_expstatsn(struct iscsi_conn_recovery *, u32); extern void iscsit_discard_cr_cmds_by_expstatsn(struct iscsi_conn_recovery *, u32);
extern int iscsit_discard_unacknowledged_ooo_cmdsns_for_conn(struct iscsi_conn *); extern int iscsit_discard_unacknowledged_ooo_cmdsns_for_conn(struct iscsit_conn *);
extern int iscsit_prepare_cmds_for_reallegiance(struct iscsi_conn *); extern int iscsit_prepare_cmds_for_reallegiance(struct iscsit_conn *);
extern int iscsit_connection_recovery_transport_reset(struct iscsi_conn *); extern int iscsit_connection_recovery_transport_reset(struct iscsit_conn *);
#endif /*** ISCSI_TARGET_ERL2_H ***/ #endif /*** ISCSI_TARGET_ERL2_H ***/
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include <target/iscsi/iscsi_transport.h> #include <target/iscsi/iscsi_transport.h>
static struct iscsi_login *iscsi_login_init_conn(struct iscsi_conn *conn) static struct iscsi_login *iscsi_login_init_conn(struct iscsit_conn *conn)
{ {
struct iscsi_login *login; struct iscsi_login *login;
...@@ -73,9 +73,9 @@ static struct iscsi_login *iscsi_login_init_conn(struct iscsi_conn *conn) ...@@ -73,9 +73,9 @@ static struct iscsi_login *iscsi_login_init_conn(struct iscsi_conn *conn)
/* /*
* Used by iscsi_target_nego.c:iscsi_target_locate_portal() to setup * Used by iscsi_target_nego.c:iscsi_target_locate_portal() to setup
* per struct iscsi_conn libcrypto contexts for crc32c and crc32-intel * per struct iscsit_conn libcrypto contexts for crc32c and crc32-intel
*/ */
int iscsi_login_setup_crypto(struct iscsi_conn *conn) int iscsi_login_setup_crypto(struct iscsit_conn *conn)
{ {
struct crypto_ahash *tfm; struct crypto_ahash *tfm;
...@@ -112,7 +112,7 @@ int iscsi_login_setup_crypto(struct iscsi_conn *conn) ...@@ -112,7 +112,7 @@ int iscsi_login_setup_crypto(struct iscsi_conn *conn)
} }
static int iscsi_login_check_initiator_version( static int iscsi_login_check_initiator_version(
struct iscsi_conn *conn, struct iscsit_conn *conn,
u8 version_max, u8 version_max,
u8 version_min) u8 version_min)
{ {
...@@ -128,7 +128,7 @@ static int iscsi_login_check_initiator_version( ...@@ -128,7 +128,7 @@ static int iscsi_login_check_initiator_version(
return 0; return 0;
} }
int iscsi_check_for_session_reinstatement(struct iscsi_conn *conn) int iscsi_check_for_session_reinstatement(struct iscsit_conn *conn)
{ {
int sessiontype; int sessiontype;
struct iscsi_param *initiatorname_param = NULL, *sessiontype_param = NULL; struct iscsi_param *initiatorname_param = NULL, *sessiontype_param = NULL;
...@@ -205,7 +205,7 @@ int iscsi_check_for_session_reinstatement(struct iscsi_conn *conn) ...@@ -205,7 +205,7 @@ int iscsi_check_for_session_reinstatement(struct iscsi_conn *conn)
static int iscsi_login_set_conn_values( static int iscsi_login_set_conn_values(
struct iscsi_session *sess, struct iscsi_session *sess,
struct iscsi_conn *conn, struct iscsit_conn *conn,
__be16 cid) __be16 cid)
{ {
int ret; int ret;
...@@ -226,7 +226,7 @@ static int iscsi_login_set_conn_values( ...@@ -226,7 +226,7 @@ static int iscsi_login_set_conn_values(
} }
__printf(2, 3) int iscsi_change_param_sprintf( __printf(2, 3) int iscsi_change_param_sprintf(
struct iscsi_conn *conn, struct iscsit_conn *conn,
const char *fmt, ...) const char *fmt, ...)
{ {
va_list args; va_list args;
...@@ -253,7 +253,7 @@ EXPORT_SYMBOL(iscsi_change_param_sprintf); ...@@ -253,7 +253,7 @@ EXPORT_SYMBOL(iscsi_change_param_sprintf);
* or session reinstatement. * or session reinstatement.
*/ */
static int iscsi_login_zero_tsih_s1( static int iscsi_login_zero_tsih_s1(
struct iscsi_conn *conn, struct iscsit_conn *conn,
unsigned char *buf) unsigned char *buf)
{ {
struct iscsi_session *sess = NULL; struct iscsi_session *sess = NULL;
...@@ -337,7 +337,7 @@ static int iscsi_login_zero_tsih_s1( ...@@ -337,7 +337,7 @@ static int iscsi_login_zero_tsih_s1(
} }
static int iscsi_login_zero_tsih_s2( static int iscsi_login_zero_tsih_s2(
struct iscsi_conn *conn) struct iscsit_conn *conn)
{ {
struct iscsi_node_attrib *na; struct iscsi_node_attrib *na;
struct iscsi_session *sess = conn->sess; struct iscsi_session *sess = conn->sess;
...@@ -458,7 +458,7 @@ static int iscsi_login_zero_tsih_s2( ...@@ -458,7 +458,7 @@ static int iscsi_login_zero_tsih_s2(
} }
static int iscsi_login_non_zero_tsih_s1( static int iscsi_login_non_zero_tsih_s1(
struct iscsi_conn *conn, struct iscsit_conn *conn,
unsigned char *buf) unsigned char *buf)
{ {
struct iscsi_login_req *pdu = (struct iscsi_login_req *)buf; struct iscsi_login_req *pdu = (struct iscsi_login_req *)buf;
...@@ -470,7 +470,7 @@ static int iscsi_login_non_zero_tsih_s1( ...@@ -470,7 +470,7 @@ static int iscsi_login_non_zero_tsih_s1(
* Add a new connection to an existing session. * Add a new connection to an existing session.
*/ */
static int iscsi_login_non_zero_tsih_s2( static int iscsi_login_non_zero_tsih_s2(
struct iscsi_conn *conn, struct iscsit_conn *conn,
unsigned char *buf) unsigned char *buf)
{ {
struct iscsi_portal_group *tpg = conn->tpg; struct iscsi_portal_group *tpg = conn->tpg;
...@@ -546,11 +546,11 @@ static int iscsi_login_non_zero_tsih_s2( ...@@ -546,11 +546,11 @@ static int iscsi_login_non_zero_tsih_s2(
} }
int iscsi_login_post_auth_non_zero_tsih( int iscsi_login_post_auth_non_zero_tsih(
struct iscsi_conn *conn, struct iscsit_conn *conn,
u16 cid, u16 cid,
u32 exp_statsn) u32 exp_statsn)
{ {
struct iscsi_conn *conn_ptr = NULL; struct iscsit_conn *conn_ptr = NULL;
struct iscsi_conn_recovery *cr = NULL; struct iscsi_conn_recovery *cr = NULL;
struct iscsi_session *sess = conn->sess; struct iscsi_session *sess = conn->sess;
...@@ -612,7 +612,7 @@ int iscsi_login_post_auth_non_zero_tsih( ...@@ -612,7 +612,7 @@ int iscsi_login_post_auth_non_zero_tsih(
return 0; return 0;
} }
static void iscsi_post_login_start_timers(struct iscsi_conn *conn) static void iscsi_post_login_start_timers(struct iscsit_conn *conn)
{ {
struct iscsi_session *sess = conn->sess; struct iscsi_session *sess = conn->sess;
/* /*
...@@ -625,7 +625,7 @@ static void iscsi_post_login_start_timers(struct iscsi_conn *conn) ...@@ -625,7 +625,7 @@ static void iscsi_post_login_start_timers(struct iscsi_conn *conn)
iscsit_start_nopin_timer(conn); iscsit_start_nopin_timer(conn);
} }
int iscsit_start_kthreads(struct iscsi_conn *conn) int iscsit_start_kthreads(struct iscsit_conn *conn)
{ {
int ret = 0; int ret = 0;
...@@ -673,7 +673,7 @@ int iscsit_start_kthreads(struct iscsi_conn *conn) ...@@ -673,7 +673,7 @@ int iscsit_start_kthreads(struct iscsi_conn *conn)
void iscsi_post_login_handler( void iscsi_post_login_handler(
struct iscsi_np *np, struct iscsi_np *np,
struct iscsi_conn *conn, struct iscsit_conn *conn,
u8 zero_tsih) u8 zero_tsih)
{ {
int stop_timer = 0; int stop_timer = 0;
...@@ -730,7 +730,7 @@ void iscsi_post_login_handler( ...@@ -730,7 +730,7 @@ void iscsi_post_login_handler(
conn->conn_tx_reset_cpumask = 1; conn->conn_tx_reset_cpumask = 1;
/* /*
* Wakeup the sleeping iscsi_target_rx_thread() now that * Wakeup the sleeping iscsi_target_rx_thread() now that
* iscsi_conn is in TARG_CONN_STATE_LOGGED_IN state. * iscsit_conn is in TARG_CONN_STATE_LOGGED_IN state.
*/ */
complete(&conn->rx_login_comp); complete(&conn->rx_login_comp);
iscsit_dec_conn_usage_count(conn); iscsit_dec_conn_usage_count(conn);
...@@ -792,7 +792,7 @@ void iscsi_post_login_handler( ...@@ -792,7 +792,7 @@ void iscsi_post_login_handler(
conn->conn_tx_reset_cpumask = 1; conn->conn_tx_reset_cpumask = 1;
/* /*
* Wakeup the sleeping iscsi_target_rx_thread() now that * Wakeup the sleeping iscsi_target_rx_thread() now that
* iscsi_conn is in TARG_CONN_STATE_LOGGED_IN state. * iscsit_conn is in TARG_CONN_STATE_LOGGED_IN state.
*/ */
complete(&conn->rx_login_comp); complete(&conn->rx_login_comp);
iscsit_dec_conn_usage_count(conn); iscsit_dec_conn_usage_count(conn);
...@@ -944,7 +944,7 @@ int iscsi_target_setup_login_socket( ...@@ -944,7 +944,7 @@ int iscsi_target_setup_login_socket(
return 0; return 0;
} }
int iscsit_accept_np(struct iscsi_np *np, struct iscsi_conn *conn) int iscsit_accept_np(struct iscsi_np *np, struct iscsit_conn *conn)
{ {
struct socket *new_sock, *sock = np->np_socket; struct socket *new_sock, *sock = np->np_socket;
struct sockaddr_in sock_in; struct sockaddr_in sock_in;
...@@ -1005,7 +1005,7 @@ int iscsit_accept_np(struct iscsi_np *np, struct iscsi_conn *conn) ...@@ -1005,7 +1005,7 @@ int iscsit_accept_np(struct iscsi_np *np, struct iscsi_conn *conn)
return 0; return 0;
} }
int iscsit_get_login_rx(struct iscsi_conn *conn, struct iscsi_login *login) int iscsit_get_login_rx(struct iscsit_conn *conn, struct iscsi_login *login)
{ {
struct iscsi_login_req *login_req; struct iscsi_login_req *login_req;
u32 padding = 0, payload_length; u32 padding = 0, payload_length;
...@@ -1050,7 +1050,7 @@ int iscsit_get_login_rx(struct iscsi_conn *conn, struct iscsi_login *login) ...@@ -1050,7 +1050,7 @@ int iscsit_get_login_rx(struct iscsi_conn *conn, struct iscsi_login *login)
return 0; return 0;
} }
int iscsit_put_login_tx(struct iscsi_conn *conn, struct iscsi_login *login, int iscsit_put_login_tx(struct iscsit_conn *conn, struct iscsi_login *login,
u32 length) u32 length)
{ {
if (iscsi_login_tx_data(conn, login->rsp, login->rsp_buf, length) < 0) if (iscsi_login_tx_data(conn, login->rsp, login->rsp_buf, length) < 0)
...@@ -1060,7 +1060,7 @@ int iscsit_put_login_tx(struct iscsi_conn *conn, struct iscsi_login *login, ...@@ -1060,7 +1060,7 @@ int iscsit_put_login_tx(struct iscsi_conn *conn, struct iscsi_login *login,
} }
static int static int
iscsit_conn_set_transport(struct iscsi_conn *conn, struct iscsit_transport *t) iscsit_conn_set_transport(struct iscsit_conn *conn, struct iscsit_transport *t)
{ {
int rc; int rc;
...@@ -1079,11 +1079,11 @@ iscsit_conn_set_transport(struct iscsi_conn *conn, struct iscsit_transport *t) ...@@ -1079,11 +1079,11 @@ iscsit_conn_set_transport(struct iscsi_conn *conn, struct iscsit_transport *t)
return 0; return 0;
} }
static struct iscsi_conn *iscsit_alloc_conn(struct iscsi_np *np) static struct iscsit_conn *iscsit_alloc_conn(struct iscsi_np *np)
{ {
struct iscsi_conn *conn; struct iscsit_conn *conn;
conn = kzalloc(sizeof(struct iscsi_conn), GFP_KERNEL); conn = kzalloc(sizeof(struct iscsit_conn), GFP_KERNEL);
if (!conn) { if (!conn) {
pr_err("Could not allocate memory for new connection\n"); pr_err("Could not allocate memory for new connection\n");
return NULL; return NULL;
...@@ -1147,7 +1147,7 @@ static struct iscsi_conn *iscsit_alloc_conn(struct iscsi_np *np) ...@@ -1147,7 +1147,7 @@ static struct iscsi_conn *iscsit_alloc_conn(struct iscsi_np *np)
return NULL; return NULL;
} }
void iscsit_free_conn(struct iscsi_conn *conn) void iscsit_free_conn(struct iscsit_conn *conn)
{ {
free_cpumask_var(conn->allowed_cpumask); free_cpumask_var(conn->allowed_cpumask);
free_cpumask_var(conn->conn_cpumask); free_cpumask_var(conn->conn_cpumask);
...@@ -1156,7 +1156,7 @@ void iscsit_free_conn(struct iscsi_conn *conn) ...@@ -1156,7 +1156,7 @@ void iscsit_free_conn(struct iscsi_conn *conn)
kfree(conn); kfree(conn);
} }
void iscsi_target_login_sess_out(struct iscsi_conn *conn, void iscsi_target_login_sess_out(struct iscsit_conn *conn,
bool zero_tsih, bool new_sess) bool zero_tsih, bool new_sess)
{ {
if (!new_sess) if (!new_sess)
...@@ -1228,7 +1228,7 @@ static int __iscsi_target_login_thread(struct iscsi_np *np) ...@@ -1228,7 +1228,7 @@ static int __iscsi_target_login_thread(struct iscsi_np *np)
{ {
u8 *buffer, zero_tsih = 0; u8 *buffer, zero_tsih = 0;
int ret = 0, rc; int ret = 0, rc;
struct iscsi_conn *conn = NULL; struct iscsit_conn *conn = NULL;
struct iscsi_login *login; struct iscsi_login *login;
struct iscsi_portal_group *tpg = NULL; struct iscsi_portal_group *tpg = NULL;
struct iscsi_login_req *pdu; struct iscsi_login_req *pdu;
...@@ -1371,7 +1371,7 @@ static int __iscsi_target_login_thread(struct iscsi_np *np) ...@@ -1371,7 +1371,7 @@ static int __iscsi_target_login_thread(struct iscsi_np *np)
tpg = conn->tpg; tpg = conn->tpg;
if (!tpg) { if (!tpg) {
pr_err("Unable to locate struct iscsi_conn->tpg\n"); pr_err("Unable to locate struct iscsit_conn->tpg\n");
goto new_sess_out; goto new_sess_out;
} }
......
...@@ -4,25 +4,25 @@ ...@@ -4,25 +4,25 @@
#include <linux/types.h> #include <linux/types.h>
struct iscsi_conn; struct iscsit_conn;
struct iscsi_login; struct iscsi_login;
struct iscsi_np; struct iscsi_np;
struct sockaddr_storage; struct sockaddr_storage;
extern int iscsi_login_setup_crypto(struct iscsi_conn *); extern int iscsi_login_setup_crypto(struct iscsit_conn *);
extern int iscsi_check_for_session_reinstatement(struct iscsi_conn *); extern int iscsi_check_for_session_reinstatement(struct iscsit_conn *);
extern int iscsi_login_post_auth_non_zero_tsih(struct iscsi_conn *, u16, u32); extern int iscsi_login_post_auth_non_zero_tsih(struct iscsit_conn *, u16, u32);
extern int iscsit_setup_np(struct iscsi_np *, extern int iscsit_setup_np(struct iscsi_np *,
struct sockaddr_storage *); struct sockaddr_storage *);
extern int iscsi_target_setup_login_socket(struct iscsi_np *, extern int iscsi_target_setup_login_socket(struct iscsi_np *,
struct sockaddr_storage *); struct sockaddr_storage *);
extern int iscsit_accept_np(struct iscsi_np *, struct iscsi_conn *); extern int iscsit_accept_np(struct iscsi_np *, struct iscsit_conn *);
extern int iscsit_get_login_rx(struct iscsi_conn *, struct iscsi_login *); extern int iscsit_get_login_rx(struct iscsit_conn *, struct iscsi_login *);
extern int iscsit_put_login_tx(struct iscsi_conn *, struct iscsi_login *, u32); extern int iscsit_put_login_tx(struct iscsit_conn *, struct iscsi_login *, u32);
extern void iscsit_free_conn(struct iscsi_conn *); extern void iscsit_free_conn(struct iscsit_conn *);
extern int iscsit_start_kthreads(struct iscsi_conn *); extern int iscsit_start_kthreads(struct iscsit_conn *);
extern void iscsi_post_login_handler(struct iscsi_np *, struct iscsi_conn *, u8); extern void iscsi_post_login_handler(struct iscsi_np *, struct iscsit_conn *, u8);
extern void iscsi_target_login_sess_out(struct iscsi_conn *, bool, bool); extern void iscsi_target_login_sess_out(struct iscsit_conn *, bool, bool);
extern int iscsi_target_login_thread(void *); extern int iscsi_target_login_thread(void *);
extern void iscsi_handle_login_thread_timeout(struct timer_list *t); extern void iscsi_handle_login_thread_timeout(struct timer_list *t);
......
...@@ -95,7 +95,7 @@ int extract_param( ...@@ -95,7 +95,7 @@ int extract_param(
} }
static u32 iscsi_handle_authentication( static u32 iscsi_handle_authentication(
struct iscsi_conn *conn, struct iscsit_conn *conn,
char *in_buf, char *in_buf,
char *out_buf, char *out_buf,
int in_length, int in_length,
...@@ -151,13 +151,13 @@ static u32 iscsi_handle_authentication( ...@@ -151,13 +151,13 @@ static u32 iscsi_handle_authentication(
return 2; return 2;
} }
static void iscsi_remove_failed_auth_entry(struct iscsi_conn *conn) static void iscsi_remove_failed_auth_entry(struct iscsit_conn *conn)
{ {
kfree(conn->auth_protocol); kfree(conn->auth_protocol);
} }
int iscsi_target_check_login_request( int iscsi_target_check_login_request(
struct iscsi_conn *conn, struct iscsit_conn *conn,
struct iscsi_login *login) struct iscsi_login *login)
{ {
int req_csg, req_nsg; int req_csg, req_nsg;
...@@ -248,7 +248,7 @@ int iscsi_target_check_login_request( ...@@ -248,7 +248,7 @@ int iscsi_target_check_login_request(
EXPORT_SYMBOL(iscsi_target_check_login_request); EXPORT_SYMBOL(iscsi_target_check_login_request);
static int iscsi_target_check_first_request( static int iscsi_target_check_first_request(
struct iscsi_conn *conn, struct iscsit_conn *conn,
struct iscsi_login *login) struct iscsi_login *login)
{ {
struct iscsi_param *param = NULL; struct iscsi_param *param = NULL;
...@@ -315,7 +315,7 @@ static int iscsi_target_check_first_request( ...@@ -315,7 +315,7 @@ static int iscsi_target_check_first_request(
return 0; return 0;
} }
static int iscsi_target_do_tx_login_io(struct iscsi_conn *conn, struct iscsi_login *login) static int iscsi_target_do_tx_login_io(struct iscsit_conn *conn, struct iscsi_login *login)
{ {
u32 padding = 0; u32 padding = 0;
struct iscsi_login_rsp *login_rsp; struct iscsi_login_rsp *login_rsp;
...@@ -382,7 +382,7 @@ static int iscsi_target_do_tx_login_io(struct iscsi_conn *conn, struct iscsi_log ...@@ -382,7 +382,7 @@ static int iscsi_target_do_tx_login_io(struct iscsi_conn *conn, struct iscsi_log
static void iscsi_target_sk_data_ready(struct sock *sk) static void iscsi_target_sk_data_ready(struct sock *sk)
{ {
struct iscsi_conn *conn = sk->sk_user_data; struct iscsit_conn *conn = sk->sk_user_data;
bool rc; bool rc;
pr_debug("Entering iscsi_target_sk_data_ready: conn: %p\n", conn); pr_debug("Entering iscsi_target_sk_data_ready: conn: %p\n", conn);
...@@ -421,7 +421,7 @@ static void iscsi_target_sk_data_ready(struct sock *sk) ...@@ -421,7 +421,7 @@ static void iscsi_target_sk_data_ready(struct sock *sk)
static void iscsi_target_sk_state_change(struct sock *); static void iscsi_target_sk_state_change(struct sock *);
static void iscsi_target_set_sock_callbacks(struct iscsi_conn *conn) static void iscsi_target_set_sock_callbacks(struct iscsit_conn *conn)
{ {
struct sock *sk; struct sock *sk;
...@@ -443,7 +443,7 @@ static void iscsi_target_set_sock_callbacks(struct iscsi_conn *conn) ...@@ -443,7 +443,7 @@ static void iscsi_target_set_sock_callbacks(struct iscsi_conn *conn)
sk->sk_rcvtimeo = TA_LOGIN_TIMEOUT * HZ; sk->sk_rcvtimeo = TA_LOGIN_TIMEOUT * HZ;
} }
static void iscsi_target_restore_sock_callbacks(struct iscsi_conn *conn) static void iscsi_target_restore_sock_callbacks(struct iscsit_conn *conn)
{ {
struct sock *sk; struct sock *sk;
...@@ -467,7 +467,7 @@ static void iscsi_target_restore_sock_callbacks(struct iscsi_conn *conn) ...@@ -467,7 +467,7 @@ static void iscsi_target_restore_sock_callbacks(struct iscsi_conn *conn)
sk->sk_rcvtimeo = MAX_SCHEDULE_TIMEOUT; sk->sk_rcvtimeo = MAX_SCHEDULE_TIMEOUT;
} }
static int iscsi_target_do_login(struct iscsi_conn *, struct iscsi_login *); static int iscsi_target_do_login(struct iscsit_conn *, struct iscsi_login *);
static bool __iscsi_target_sk_check_close(struct sock *sk) static bool __iscsi_target_sk_check_close(struct sock *sk)
{ {
...@@ -479,7 +479,7 @@ static bool __iscsi_target_sk_check_close(struct sock *sk) ...@@ -479,7 +479,7 @@ static bool __iscsi_target_sk_check_close(struct sock *sk)
return false; return false;
} }
static bool iscsi_target_sk_check_close(struct iscsi_conn *conn) static bool iscsi_target_sk_check_close(struct iscsit_conn *conn)
{ {
bool state = false; bool state = false;
...@@ -494,7 +494,7 @@ static bool iscsi_target_sk_check_close(struct iscsi_conn *conn) ...@@ -494,7 +494,7 @@ static bool iscsi_target_sk_check_close(struct iscsi_conn *conn)
return state; return state;
} }
static bool iscsi_target_sk_check_flag(struct iscsi_conn *conn, unsigned int flag) static bool iscsi_target_sk_check_flag(struct iscsit_conn *conn, unsigned int flag)
{ {
bool state = false; bool state = false;
...@@ -508,7 +508,7 @@ static bool iscsi_target_sk_check_flag(struct iscsi_conn *conn, unsigned int fla ...@@ -508,7 +508,7 @@ static bool iscsi_target_sk_check_flag(struct iscsi_conn *conn, unsigned int fla
return state; return state;
} }
static bool iscsi_target_sk_check_and_clear(struct iscsi_conn *conn, unsigned int flag) static bool iscsi_target_sk_check_and_clear(struct iscsit_conn *conn, unsigned int flag)
{ {
bool state = false; bool state = false;
...@@ -525,7 +525,7 @@ static bool iscsi_target_sk_check_and_clear(struct iscsi_conn *conn, unsigned in ...@@ -525,7 +525,7 @@ static bool iscsi_target_sk_check_and_clear(struct iscsi_conn *conn, unsigned in
return state; return state;
} }
static void iscsi_target_login_drop(struct iscsi_conn *conn, struct iscsi_login *login) static void iscsi_target_login_drop(struct iscsit_conn *conn, struct iscsi_login *login)
{ {
bool zero_tsih = login->zero_tsih; bool zero_tsih = login->zero_tsih;
...@@ -536,13 +536,13 @@ static void iscsi_target_login_drop(struct iscsi_conn *conn, struct iscsi_login ...@@ -536,13 +536,13 @@ static void iscsi_target_login_drop(struct iscsi_conn *conn, struct iscsi_login
struct conn_timeout { struct conn_timeout {
struct timer_list timer; struct timer_list timer;
struct iscsi_conn *conn; struct iscsit_conn *conn;
}; };
static void iscsi_target_login_timeout(struct timer_list *t) static void iscsi_target_login_timeout(struct timer_list *t)
{ {
struct conn_timeout *timeout = from_timer(timeout, t, timer); struct conn_timeout *timeout = from_timer(timeout, t, timer);
struct iscsi_conn *conn = timeout->conn; struct iscsit_conn *conn = timeout->conn;
pr_debug("Entering iscsi_target_login_timeout >>>>>>>>>>>>>>>>>>>\n"); pr_debug("Entering iscsi_target_login_timeout >>>>>>>>>>>>>>>>>>>\n");
...@@ -555,8 +555,8 @@ static void iscsi_target_login_timeout(struct timer_list *t) ...@@ -555,8 +555,8 @@ static void iscsi_target_login_timeout(struct timer_list *t)
static void iscsi_target_do_login_rx(struct work_struct *work) static void iscsi_target_do_login_rx(struct work_struct *work)
{ {
struct iscsi_conn *conn = container_of(work, struct iscsit_conn *conn = container_of(work,
struct iscsi_conn, login_work.work); struct iscsit_conn, login_work.work);
struct iscsi_login *login = conn->login; struct iscsi_login *login = conn->login;
struct iscsi_np *np = login->np; struct iscsi_np *np = login->np;
struct iscsi_portal_group *tpg = conn->tpg; struct iscsi_portal_group *tpg = conn->tpg;
...@@ -662,7 +662,7 @@ static void iscsi_target_do_login_rx(struct work_struct *work) ...@@ -662,7 +662,7 @@ static void iscsi_target_do_login_rx(struct work_struct *work)
static void iscsi_target_sk_state_change(struct sock *sk) static void iscsi_target_sk_state_change(struct sock *sk)
{ {
struct iscsi_conn *conn; struct iscsit_conn *conn;
void (*orig_state_change)(struct sock *); void (*orig_state_change)(struct sock *);
bool state; bool state;
...@@ -741,7 +741,7 @@ static void iscsi_target_sk_state_change(struct sock *sk) ...@@ -741,7 +741,7 @@ static void iscsi_target_sk_state_change(struct sock *sk)
* ISID/TSIH combinations. * ISID/TSIH combinations.
*/ */
static int iscsi_target_check_for_existing_instances( static int iscsi_target_check_for_existing_instances(
struct iscsi_conn *conn, struct iscsit_conn *conn,
struct iscsi_login *login) struct iscsi_login *login)
{ {
if (login->checked_for_existing) if (login->checked_for_existing)
...@@ -757,7 +757,7 @@ static int iscsi_target_check_for_existing_instances( ...@@ -757,7 +757,7 @@ static int iscsi_target_check_for_existing_instances(
} }
static int iscsi_target_do_authentication( static int iscsi_target_do_authentication(
struct iscsi_conn *conn, struct iscsit_conn *conn,
struct iscsi_login *login) struct iscsi_login *login)
{ {
int authret; int authret;
...@@ -816,7 +816,7 @@ static int iscsi_target_do_authentication( ...@@ -816,7 +816,7 @@ static int iscsi_target_do_authentication(
} }
static int iscsi_target_handle_csg_zero( static int iscsi_target_handle_csg_zero(
struct iscsi_conn *conn, struct iscsit_conn *conn,
struct iscsi_login *login) struct iscsi_login *login)
{ {
int ret; int ret;
...@@ -906,7 +906,7 @@ static int iscsi_target_handle_csg_zero( ...@@ -906,7 +906,7 @@ static int iscsi_target_handle_csg_zero(
return iscsi_target_do_authentication(conn, login); return iscsi_target_do_authentication(conn, login);
} }
static int iscsi_target_handle_csg_one(struct iscsi_conn *conn, struct iscsi_login *login) static int iscsi_target_handle_csg_one(struct iscsit_conn *conn, struct iscsi_login *login)
{ {
int ret; int ret;
u32 payload_length; u32 payload_length;
...@@ -968,7 +968,7 @@ static int iscsi_target_handle_csg_one(struct iscsi_conn *conn, struct iscsi_log ...@@ -968,7 +968,7 @@ static int iscsi_target_handle_csg_one(struct iscsi_conn *conn, struct iscsi_log
return 0; return 0;
} }
static int iscsi_target_do_login(struct iscsi_conn *conn, struct iscsi_login *login) static int iscsi_target_do_login(struct iscsit_conn *conn, struct iscsi_login *login)
{ {
int pdu_count = 0; int pdu_count = 0;
struct iscsi_login_req *login_req; struct iscsi_login_req *login_req;
...@@ -1054,7 +1054,7 @@ static void iscsi_initiatorname_tolower( ...@@ -1054,7 +1054,7 @@ static void iscsi_initiatorname_tolower(
*/ */
int iscsi_target_locate_portal( int iscsi_target_locate_portal(
struct iscsi_np *np, struct iscsi_np *np,
struct iscsi_conn *conn, struct iscsit_conn *conn,
struct iscsi_login *login) struct iscsi_login *login)
{ {
char *i_buf = NULL, *s_buf = NULL, *t_buf = NULL; char *i_buf = NULL, *s_buf = NULL, *t_buf = NULL;
...@@ -1287,7 +1287,7 @@ int iscsi_target_locate_portal( ...@@ -1287,7 +1287,7 @@ int iscsi_target_locate_portal(
int iscsi_target_start_negotiation( int iscsi_target_start_negotiation(
struct iscsi_login *login, struct iscsi_login *login,
struct iscsi_conn *conn) struct iscsit_conn *conn)
{ {
int ret; int ret;
...@@ -1323,7 +1323,7 @@ int iscsi_target_start_negotiation( ...@@ -1323,7 +1323,7 @@ int iscsi_target_start_negotiation(
return ret; return ret;
} }
void iscsi_target_nego_release(struct iscsi_conn *conn) void iscsi_target_nego_release(struct iscsit_conn *conn)
{ {
struct iscsi_login *login = conn->conn_login; struct iscsi_login *login = conn->conn_login;
......
...@@ -5,21 +5,21 @@ ...@@ -5,21 +5,21 @@
#define DECIMAL 0 #define DECIMAL 0
#define HEX 1 #define HEX 1
struct iscsi_conn; struct iscsit_conn;
struct iscsi_login; struct iscsi_login;
struct iscsi_np; struct iscsi_np;
extern void convert_null_to_semi(char *, int); extern void convert_null_to_semi(char *, int);
extern int extract_param(const char *, const char *, unsigned int, char *, extern int extract_param(const char *, const char *, unsigned int, char *,
unsigned char *); unsigned char *);
extern int iscsi_target_check_login_request(struct iscsi_conn *, extern int iscsi_target_check_login_request(struct iscsit_conn *,
struct iscsi_login *); struct iscsi_login *);
extern int iscsi_target_get_initial_payload(struct iscsi_conn *, extern int iscsi_target_get_initial_payload(struct iscsit_conn *,
struct iscsi_login *); struct iscsi_login *);
extern int iscsi_target_locate_portal(struct iscsi_np *, struct iscsi_conn *, extern int iscsi_target_locate_portal(struct iscsi_np *, struct iscsit_conn *,
struct iscsi_login *); struct iscsi_login *);
extern int iscsi_target_start_negotiation( extern int iscsi_target_start_negotiation(
struct iscsi_login *, struct iscsi_conn *); struct iscsi_login *, struct iscsit_conn *);
extern void iscsi_target_nego_release(struct iscsi_conn *); extern void iscsi_target_nego_release(struct iscsit_conn *);
#endif /* ISCSI_TARGET_NEGO_H */ #endif /* ISCSI_TARGET_NEGO_H */
...@@ -97,7 +97,7 @@ int iscsit_na_nopin_timeout( ...@@ -97,7 +97,7 @@ int iscsit_na_nopin_timeout(
{ {
struct iscsi_node_attrib *a = &acl->node_attrib; struct iscsi_node_attrib *a = &acl->node_attrib;
struct iscsi_session *sess; struct iscsi_session *sess;
struct iscsi_conn *conn; struct iscsit_conn *conn;
struct se_node_acl *se_nacl = &a->nacl->se_node_acl; struct se_node_acl *se_nacl = &a->nacl->se_node_acl;
struct se_session *se_sess; struct se_session *se_sess;
u32 orig_nopin_timeout = a->nopin_timeout; u32 orig_nopin_timeout = a->nopin_timeout;
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include "iscsi_target_parameters.h" #include "iscsi_target_parameters.h"
int iscsi_login_rx_data( int iscsi_login_rx_data(
struct iscsi_conn *conn, struct iscsit_conn *conn,
char *buf, char *buf,
int length) int length)
{ {
...@@ -37,7 +37,7 @@ int iscsi_login_rx_data( ...@@ -37,7 +37,7 @@ int iscsi_login_rx_data(
} }
int iscsi_login_tx_data( int iscsi_login_tx_data(
struct iscsi_conn *conn, struct iscsit_conn *conn,
char *pdu_buf, char *pdu_buf,
char *text_buf, char *text_buf,
int text_length) int text_length)
...@@ -955,7 +955,7 @@ static char *iscsi_check_valuelist_for_support( ...@@ -955,7 +955,7 @@ static char *iscsi_check_valuelist_for_support(
} }
static int iscsi_check_acceptor_state(struct iscsi_param *param, char *value, static int iscsi_check_acceptor_state(struct iscsi_param *param, char *value,
struct iscsi_conn *conn) struct iscsit_conn *conn)
{ {
u8 acceptor_boolean_value = 0, proposer_boolean_value = 0; u8 acceptor_boolean_value = 0, proposer_boolean_value = 0;
char *negotiated_value = NULL; char *negotiated_value = NULL;
...@@ -1352,7 +1352,7 @@ int iscsi_decode_text_input( ...@@ -1352,7 +1352,7 @@ int iscsi_decode_text_input(
u8 sender, u8 sender,
char *textbuf, char *textbuf,
u32 length, u32 length,
struct iscsi_conn *conn) struct iscsit_conn *conn)
{ {
struct iscsi_param_list *param_list = conn->param_list; struct iscsi_param_list *param_list = conn->param_list;
char *tmpbuf, *start = NULL, *end = NULL; char *tmpbuf, *start = NULL, *end = NULL;
......
...@@ -25,13 +25,13 @@ struct iscsi_param { ...@@ -25,13 +25,13 @@ struct iscsi_param {
struct list_head p_list; struct list_head p_list;
} ____cacheline_aligned; } ____cacheline_aligned;
struct iscsi_conn; struct iscsit_conn;
struct iscsi_conn_ops; struct iscsi_conn_ops;
struct iscsi_param_list; struct iscsi_param_list;
struct iscsi_sess_ops; struct iscsi_sess_ops;
extern int iscsi_login_rx_data(struct iscsi_conn *, char *, int); extern int iscsi_login_rx_data(struct iscsit_conn *, char *, int);
extern int iscsi_login_tx_data(struct iscsi_conn *, char *, char *, int); extern int iscsi_login_tx_data(struct iscsit_conn *, char *, char *, int);
extern void iscsi_dump_conn_ops(struct iscsi_conn_ops *); extern void iscsi_dump_conn_ops(struct iscsi_conn_ops *);
extern void iscsi_dump_sess_ops(struct iscsi_sess_ops *); extern void iscsi_dump_sess_ops(struct iscsi_sess_ops *);
extern void iscsi_print_params(struct iscsi_param_list *); extern void iscsi_print_params(struct iscsi_param_list *);
...@@ -45,7 +45,7 @@ extern void iscsi_release_param_list(struct iscsi_param_list *); ...@@ -45,7 +45,7 @@ extern void iscsi_release_param_list(struct iscsi_param_list *);
extern struct iscsi_param *iscsi_find_param_from_key(char *, struct iscsi_param_list *); extern struct iscsi_param *iscsi_find_param_from_key(char *, struct iscsi_param_list *);
extern int iscsi_extract_key_value(char *, char **, char **); extern int iscsi_extract_key_value(char *, char **, char **);
extern int iscsi_update_param_value(struct iscsi_param *, char *); extern int iscsi_update_param_value(struct iscsi_param *, char *);
extern int iscsi_decode_text_input(u8, u8, char *, u32, struct iscsi_conn *); extern int iscsi_decode_text_input(u8, u8, char *, u32, struct iscsit_conn *);
extern int iscsi_encode_text_output(u8, u8, char *, u32 *, extern int iscsi_encode_text_output(u8, u8, char *, u32 *,
struct iscsi_param_list *, bool); struct iscsi_param_list *, bool);
extern int iscsi_check_negotiated_keys(struct iscsi_param_list *); extern int iscsi_check_negotiated_keys(struct iscsi_param_list *);
......
...@@ -208,7 +208,7 @@ static void iscsit_determine_counts_for_list( ...@@ -208,7 +208,7 @@ static void iscsit_determine_counts_for_list(
u32 burstlength = 0, offset = 0; u32 burstlength = 0, offset = 0;
u32 unsolicited_data_length = 0; u32 unsolicited_data_length = 0;
u32 mdsl; u32 mdsl;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
if (cmd->se_cmd.data_direction == DMA_TO_DEVICE) if (cmd->se_cmd.data_direction == DMA_TO_DEVICE)
mdsl = cmd->conn->conn_ops->MaxXmitDataSegmentLength; mdsl = cmd->conn->conn_ops->MaxXmitDataSegmentLength;
...@@ -289,7 +289,7 @@ static int iscsit_do_build_pdu_and_seq_lists( ...@@ -289,7 +289,7 @@ static int iscsit_do_build_pdu_and_seq_lists(
int check_immediate = 0, datapduinorder, datasequenceinorder; int check_immediate = 0, datapduinorder, datasequenceinorder;
u32 burstlength = 0, offset = 0, i = 0, mdsl; u32 burstlength = 0, offset = 0, i = 0, mdsl;
u32 pdu_count = 0, seq_no = 0, unsolicited_data_length = 0; u32 pdu_count = 0, seq_no = 0, unsolicited_data_length = 0;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_pdu *pdu = cmd->pdu_list; struct iscsi_pdu *pdu = cmd->pdu_list;
struct iscsi_seq *seq = cmd->seq_list; struct iscsi_seq *seq = cmd->seq_list;
...@@ -489,7 +489,7 @@ int iscsit_build_pdu_and_seq_lists( ...@@ -489,7 +489,7 @@ int iscsit_build_pdu_and_seq_lists(
{ {
struct iscsi_build_list bl; struct iscsi_build_list bl;
u32 pdu_count = 0, seq_count = 1; u32 pdu_count = 0, seq_count = 1;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_pdu *pdu = NULL; struct iscsi_pdu *pdu = NULL;
struct iscsi_seq *seq = NULL; struct iscsi_seq *seq = NULL;
...@@ -587,7 +587,7 @@ struct iscsi_pdu *iscsit_get_pdu_holder_for_seq( ...@@ -587,7 +587,7 @@ struct iscsi_pdu *iscsit_get_pdu_holder_for_seq(
struct iscsi_seq *seq) struct iscsi_seq *seq)
{ {
u32 i; u32 i;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_pdu *pdu = NULL; struct iscsi_pdu *pdu = NULL;
if (!cmd->pdu_list) { if (!cmd->pdu_list) {
......
...@@ -32,7 +32,7 @@ u8 iscsit_tmr_abort_task( ...@@ -32,7 +32,7 @@ u8 iscsit_tmr_abort_task(
unsigned char *buf) unsigned char *buf)
{ {
struct iscsit_cmd *ref_cmd; struct iscsit_cmd *ref_cmd;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_tmr_req *tmr_req = cmd->tmr_req; struct iscsi_tmr_req *tmr_req = cmd->tmr_req;
struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req; struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req;
struct iscsi_tm *hdr = (struct iscsi_tm *) buf; struct iscsi_tm *hdr = (struct iscsi_tm *) buf;
...@@ -63,7 +63,7 @@ u8 iscsit_tmr_abort_task( ...@@ -63,7 +63,7 @@ u8 iscsit_tmr_abort_task(
* Called from iscsit_handle_task_mgt_cmd(). * Called from iscsit_handle_task_mgt_cmd().
*/ */
int iscsit_tmr_task_warm_reset( int iscsit_tmr_task_warm_reset(
struct iscsi_conn *conn, struct iscsit_conn *conn,
struct iscsi_tmr_req *tmr_req, struct iscsi_tmr_req *tmr_req,
unsigned char *buf) unsigned char *buf)
{ {
...@@ -83,7 +83,7 @@ int iscsit_tmr_task_warm_reset( ...@@ -83,7 +83,7 @@ int iscsit_tmr_task_warm_reset(
} }
int iscsit_tmr_task_cold_reset( int iscsit_tmr_task_cold_reset(
struct iscsi_conn *conn, struct iscsit_conn *conn,
struct iscsi_tmr_req *tmr_req, struct iscsi_tmr_req *tmr_req,
unsigned char *buf) unsigned char *buf)
{ {
...@@ -107,7 +107,7 @@ u8 iscsit_tmr_task_reassign( ...@@ -107,7 +107,7 @@ u8 iscsit_tmr_task_reassign(
unsigned char *buf) unsigned char *buf)
{ {
struct iscsit_cmd *ref_cmd = NULL; struct iscsit_cmd *ref_cmd = NULL;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_conn_recovery *cr = NULL; struct iscsi_conn_recovery *cr = NULL;
struct iscsi_tmr_req *tmr_req = cmd->tmr_req; struct iscsi_tmr_req *tmr_req = cmd->tmr_req;
struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req; struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req;
...@@ -193,7 +193,7 @@ static void iscsit_task_reassign_remove_cmd( ...@@ -193,7 +193,7 @@ static void iscsit_task_reassign_remove_cmd(
static int iscsit_task_reassign_complete_nop_out( static int iscsit_task_reassign_complete_nop_out(
struct iscsi_tmr_req *tmr_req, struct iscsi_tmr_req *tmr_req,
struct iscsi_conn *conn) struct iscsit_conn *conn)
{ {
struct iscsit_cmd *cmd = tmr_req->ref_cmd; struct iscsit_cmd *cmd = tmr_req->ref_cmd;
struct iscsi_conn_recovery *cr; struct iscsi_conn_recovery *cr;
...@@ -229,7 +229,7 @@ static int iscsit_task_reassign_complete_write( ...@@ -229,7 +229,7 @@ static int iscsit_task_reassign_complete_write(
{ {
int no_build_r2ts = 0; int no_build_r2ts = 0;
u32 length = 0, offset = 0; u32 length = 0, offset = 0;
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct se_cmd *se_cmd = &cmd->se_cmd; struct se_cmd *se_cmd = &cmd->se_cmd;
/* /*
* The Initiator must not send a R2T SNACK with a Begrun less than * The Initiator must not send a R2T SNACK with a Begrun less than
...@@ -299,7 +299,7 @@ static int iscsit_task_reassign_complete_read( ...@@ -299,7 +299,7 @@ static int iscsit_task_reassign_complete_read(
struct iscsit_cmd *cmd, struct iscsit_cmd *cmd,
struct iscsi_tmr_req *tmr_req) struct iscsi_tmr_req *tmr_req)
{ {
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
struct iscsi_datain_req *dr; struct iscsi_datain_req *dr;
struct se_cmd *se_cmd = &cmd->se_cmd; struct se_cmd *se_cmd = &cmd->se_cmd;
/* /*
...@@ -352,7 +352,7 @@ static int iscsit_task_reassign_complete_none( ...@@ -352,7 +352,7 @@ static int iscsit_task_reassign_complete_none(
struct iscsit_cmd *cmd, struct iscsit_cmd *cmd,
struct iscsi_tmr_req *tmr_req) struct iscsi_tmr_req *tmr_req)
{ {
struct iscsi_conn *conn = cmd->conn; struct iscsit_conn *conn = cmd->conn;
cmd->i_state = ISTATE_SEND_STATUS; cmd->i_state = ISTATE_SEND_STATUS;
iscsit_add_cmd_to_response_queue(cmd, conn, cmd->i_state); iscsit_add_cmd_to_response_queue(cmd, conn, cmd->i_state);
...@@ -361,7 +361,7 @@ static int iscsit_task_reassign_complete_none( ...@@ -361,7 +361,7 @@ static int iscsit_task_reassign_complete_none(
static int iscsit_task_reassign_complete_scsi_cmnd( static int iscsit_task_reassign_complete_scsi_cmnd(
struct iscsi_tmr_req *tmr_req, struct iscsi_tmr_req *tmr_req,
struct iscsi_conn *conn) struct iscsit_conn *conn)
{ {
struct iscsit_cmd *cmd = tmr_req->ref_cmd; struct iscsit_cmd *cmd = tmr_req->ref_cmd;
struct iscsi_conn_recovery *cr; struct iscsi_conn_recovery *cr;
...@@ -410,7 +410,7 @@ static int iscsit_task_reassign_complete_scsi_cmnd( ...@@ -410,7 +410,7 @@ static int iscsit_task_reassign_complete_scsi_cmnd(
static int iscsit_task_reassign_complete( static int iscsit_task_reassign_complete(
struct iscsi_tmr_req *tmr_req, struct iscsi_tmr_req *tmr_req,
struct iscsi_conn *conn) struct iscsit_conn *conn)
{ {
struct iscsit_cmd *cmd; struct iscsit_cmd *cmd;
int ret = 0; int ret = 0;
...@@ -451,7 +451,7 @@ static int iscsit_task_reassign_complete( ...@@ -451,7 +451,7 @@ static int iscsit_task_reassign_complete(
* Right now the only one that its really needed for is * Right now the only one that its really needed for is
* connection recovery releated TASK_REASSIGN. * connection recovery releated TASK_REASSIGN.
*/ */
int iscsit_tmr_post_handler(struct iscsit_cmd *cmd, struct iscsi_conn *conn) int iscsit_tmr_post_handler(struct iscsit_cmd *cmd, struct iscsit_conn *conn)
{ {
struct iscsi_tmr_req *tmr_req = cmd->tmr_req; struct iscsi_tmr_req *tmr_req = cmd->tmr_req;
struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req; struct se_tmr_req *se_tmr = cmd->se_cmd.se_tmr_req;
...@@ -469,14 +469,14 @@ EXPORT_SYMBOL(iscsit_tmr_post_handler); ...@@ -469,14 +469,14 @@ EXPORT_SYMBOL(iscsit_tmr_post_handler);
*/ */
static int iscsit_task_reassign_prepare_read( static int iscsit_task_reassign_prepare_read(
struct iscsi_tmr_req *tmr_req, struct iscsi_tmr_req *tmr_req,
struct iscsi_conn *conn) struct iscsit_conn *conn)
{ {
return 0; return 0;
} }
static void iscsit_task_reassign_prepare_unsolicited_dataout( static void iscsit_task_reassign_prepare_unsolicited_dataout(
struct iscsit_cmd *cmd, struct iscsit_cmd *cmd,
struct iscsi_conn *conn) struct iscsit_conn *conn)
{ {
int i, j; int i, j;
struct iscsi_pdu *pdu = NULL; struct iscsi_pdu *pdu = NULL;
...@@ -544,7 +544,7 @@ static void iscsit_task_reassign_prepare_unsolicited_dataout( ...@@ -544,7 +544,7 @@ static void iscsit_task_reassign_prepare_unsolicited_dataout(
static int iscsit_task_reassign_prepare_write( static int iscsit_task_reassign_prepare_write(
struct iscsi_tmr_req *tmr_req, struct iscsi_tmr_req *tmr_req,
struct iscsi_conn *conn) struct iscsit_conn *conn)
{ {
struct iscsit_cmd *cmd = tmr_req->ref_cmd; struct iscsit_cmd *cmd = tmr_req->ref_cmd;
struct iscsi_pdu *pdu = NULL; struct iscsi_pdu *pdu = NULL;
...@@ -777,7 +777,7 @@ static int iscsit_task_reassign_prepare_write( ...@@ -777,7 +777,7 @@ static int iscsit_task_reassign_prepare_write(
*/ */
int iscsit_check_task_reassign_expdatasn( int iscsit_check_task_reassign_expdatasn(
struct iscsi_tmr_req *tmr_req, struct iscsi_tmr_req *tmr_req,
struct iscsi_conn *conn) struct iscsit_conn *conn)
{ {
struct iscsit_cmd *ref_cmd = tmr_req->ref_cmd; struct iscsit_cmd *ref_cmd = tmr_req->ref_cmd;
......
...@@ -5,17 +5,17 @@ ...@@ -5,17 +5,17 @@
#include <linux/types.h> #include <linux/types.h>
struct iscsit_cmd; struct iscsit_cmd;
struct iscsi_conn; struct iscsit_conn;
struct iscsi_tmr_req; struct iscsi_tmr_req;
extern u8 iscsit_tmr_abort_task(struct iscsit_cmd *, unsigned char *); extern u8 iscsit_tmr_abort_task(struct iscsit_cmd *, unsigned char *);
extern int iscsit_tmr_task_warm_reset(struct iscsi_conn *, struct iscsi_tmr_req *, extern int iscsit_tmr_task_warm_reset(struct iscsit_conn *, struct iscsi_tmr_req *,
unsigned char *); unsigned char *);
extern int iscsit_tmr_task_cold_reset(struct iscsi_conn *, struct iscsi_tmr_req *, extern int iscsit_tmr_task_cold_reset(struct iscsit_conn *, struct iscsi_tmr_req *,
unsigned char *); unsigned char *);
extern u8 iscsit_tmr_task_reassign(struct iscsit_cmd *, unsigned char *); extern u8 iscsit_tmr_task_reassign(struct iscsit_cmd *, unsigned char *);
extern int iscsit_tmr_post_handler(struct iscsit_cmd *, struct iscsi_conn *); extern int iscsit_tmr_post_handler(struct iscsit_cmd *, struct iscsit_conn *);
extern int iscsit_check_task_reassign_expdatasn(struct iscsi_tmr_req *, extern int iscsit_check_task_reassign_expdatasn(struct iscsi_tmr_req *,
struct iscsi_conn *); struct iscsit_conn *);
#endif /* ISCSI_TARGET_TMR_H */ #endif /* ISCSI_TARGET_TMR_H */
This diff is collapsed.
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#define MARKER_SIZE 8 #define MARKER_SIZE 8
struct iscsit_cmd; struct iscsit_cmd;
struct iscsi_conn; struct iscsit_conn;
struct iscsi_conn_recovery; struct iscsi_conn_recovery;
struct iscsi_session; struct iscsi_session;
...@@ -17,56 +17,56 @@ extern struct iscsi_r2t *iscsit_get_r2t_for_eos(struct iscsit_cmd *, u32, u32); ...@@ -17,56 +17,56 @@ extern struct iscsi_r2t *iscsit_get_r2t_for_eos(struct iscsit_cmd *, u32, u32);
extern struct iscsi_r2t *iscsit_get_r2t_from_list(struct iscsit_cmd *); extern struct iscsi_r2t *iscsit_get_r2t_from_list(struct iscsit_cmd *);
extern void iscsit_free_r2t(struct iscsi_r2t *, struct iscsit_cmd *); extern void iscsit_free_r2t(struct iscsi_r2t *, struct iscsit_cmd *);
extern void iscsit_free_r2ts_from_list(struct iscsit_cmd *); extern void iscsit_free_r2ts_from_list(struct iscsit_cmd *);
extern struct iscsit_cmd *iscsit_alloc_cmd(struct iscsi_conn *, gfp_t); extern struct iscsit_cmd *iscsit_alloc_cmd(struct iscsit_conn *, gfp_t);
extern struct iscsit_cmd *iscsit_allocate_cmd(struct iscsi_conn *, int); extern struct iscsit_cmd *iscsit_allocate_cmd(struct iscsit_conn *, int);
extern struct iscsi_seq *iscsit_get_seq_holder_for_datain(struct iscsit_cmd *, u32); extern struct iscsi_seq *iscsit_get_seq_holder_for_datain(struct iscsit_cmd *, u32);
extern struct iscsi_seq *iscsit_get_seq_holder_for_r2t(struct iscsit_cmd *); extern struct iscsi_seq *iscsit_get_seq_holder_for_r2t(struct iscsit_cmd *);
extern struct iscsi_r2t *iscsit_get_holder_for_r2tsn(struct iscsit_cmd *, u32); extern struct iscsi_r2t *iscsit_get_holder_for_r2tsn(struct iscsit_cmd *, u32);
extern int iscsit_sequence_cmd(struct iscsi_conn *conn, struct iscsit_cmd *cmd, extern int iscsit_sequence_cmd(struct iscsit_conn *conn, struct iscsit_cmd *cmd,
unsigned char * ,__be32 cmdsn); unsigned char * ,__be32 cmdsn);
extern int iscsit_check_unsolicited_dataout(struct iscsit_cmd *, unsigned char *); extern int iscsit_check_unsolicited_dataout(struct iscsit_cmd *, unsigned char *);
extern struct iscsit_cmd *iscsit_find_cmd_from_itt_or_dump(struct iscsi_conn *, extern struct iscsit_cmd *iscsit_find_cmd_from_itt_or_dump(struct iscsit_conn *,
itt_t, u32); itt_t, u32);
extern struct iscsit_cmd *iscsit_find_cmd_from_ttt(struct iscsi_conn *, u32); extern struct iscsit_cmd *iscsit_find_cmd_from_ttt(struct iscsit_conn *, u32);
extern int iscsit_find_cmd_for_recovery(struct iscsi_session *, struct iscsit_cmd **, extern int iscsit_find_cmd_for_recovery(struct iscsi_session *, struct iscsit_cmd **,
struct iscsi_conn_recovery **, itt_t); struct iscsi_conn_recovery **, itt_t);
extern void iscsit_add_cmd_to_immediate_queue(struct iscsit_cmd *, struct iscsi_conn *, u8); extern void iscsit_add_cmd_to_immediate_queue(struct iscsit_cmd *, struct iscsit_conn *, u8);
extern struct iscsi_queue_req *iscsit_get_cmd_from_immediate_queue(struct iscsi_conn *); extern struct iscsi_queue_req *iscsit_get_cmd_from_immediate_queue(struct iscsit_conn *);
extern int iscsit_add_cmd_to_response_queue(struct iscsit_cmd *, struct iscsi_conn *, u8); extern int iscsit_add_cmd_to_response_queue(struct iscsit_cmd *, struct iscsit_conn *, u8);
extern struct iscsi_queue_req *iscsit_get_cmd_from_response_queue(struct iscsi_conn *); extern struct iscsi_queue_req *iscsit_get_cmd_from_response_queue(struct iscsit_conn *);
extern void iscsit_remove_cmd_from_tx_queues(struct iscsit_cmd *, struct iscsi_conn *); extern void iscsit_remove_cmd_from_tx_queues(struct iscsit_cmd *, struct iscsit_conn *);
extern bool iscsit_conn_all_queues_empty(struct iscsi_conn *); extern bool iscsit_conn_all_queues_empty(struct iscsit_conn *);
extern void iscsit_free_queue_reqs_for_conn(struct iscsi_conn *); extern void iscsit_free_queue_reqs_for_conn(struct iscsit_conn *);
extern void iscsit_release_cmd(struct iscsit_cmd *); extern void iscsit_release_cmd(struct iscsit_cmd *);
extern void __iscsit_free_cmd(struct iscsit_cmd *, bool); extern void __iscsit_free_cmd(struct iscsit_cmd *, bool);
extern void iscsit_free_cmd(struct iscsit_cmd *, bool); extern void iscsit_free_cmd(struct iscsit_cmd *, bool);
extern bool iscsit_check_session_usage_count(struct iscsi_session *sess, bool can_sleep); extern bool iscsit_check_session_usage_count(struct iscsi_session *sess, bool can_sleep);
extern void iscsit_dec_session_usage_count(struct iscsi_session *); extern void iscsit_dec_session_usage_count(struct iscsi_session *);
extern void iscsit_inc_session_usage_count(struct iscsi_session *); extern void iscsit_inc_session_usage_count(struct iscsi_session *);
extern struct iscsi_conn *iscsit_get_conn_from_cid(struct iscsi_session *, u16); extern struct iscsit_conn *iscsit_get_conn_from_cid(struct iscsi_session *, u16);
extern struct iscsi_conn *iscsit_get_conn_from_cid_rcfr(struct iscsi_session *, u16); extern struct iscsit_conn *iscsit_get_conn_from_cid_rcfr(struct iscsi_session *, u16);
extern void iscsit_check_conn_usage_count(struct iscsi_conn *); extern void iscsit_check_conn_usage_count(struct iscsit_conn *);
extern void iscsit_dec_conn_usage_count(struct iscsi_conn *); extern void iscsit_dec_conn_usage_count(struct iscsit_conn *);
extern void iscsit_inc_conn_usage_count(struct iscsi_conn *); extern void iscsit_inc_conn_usage_count(struct iscsit_conn *);
extern void iscsit_handle_nopin_response_timeout(struct timer_list *t); extern void iscsit_handle_nopin_response_timeout(struct timer_list *t);
extern void iscsit_mod_nopin_response_timer(struct iscsi_conn *); extern void iscsit_mod_nopin_response_timer(struct iscsit_conn *);
extern void iscsit_start_nopin_response_timer(struct iscsi_conn *); extern void iscsit_start_nopin_response_timer(struct iscsit_conn *);
extern void iscsit_stop_nopin_response_timer(struct iscsi_conn *); extern void iscsit_stop_nopin_response_timer(struct iscsit_conn *);
extern void iscsit_handle_nopin_timeout(struct timer_list *t); extern void iscsit_handle_nopin_timeout(struct timer_list *t);
extern void __iscsit_start_nopin_timer(struct iscsi_conn *); extern void __iscsit_start_nopin_timer(struct iscsit_conn *);
extern void iscsit_start_nopin_timer(struct iscsi_conn *); extern void iscsit_start_nopin_timer(struct iscsit_conn *);
extern void iscsit_stop_nopin_timer(struct iscsi_conn *); extern void iscsit_stop_nopin_timer(struct iscsit_conn *);
extern int iscsit_send_tx_data(struct iscsit_cmd *, struct iscsi_conn *, int); extern int iscsit_send_tx_data(struct iscsit_cmd *, struct iscsit_conn *, int);
extern int iscsit_fe_sendpage_sg(struct iscsit_cmd *, struct iscsi_conn *); extern int iscsit_fe_sendpage_sg(struct iscsit_cmd *, struct iscsit_conn *);
extern int iscsit_tx_login_rsp(struct iscsi_conn *, u8, u8); extern int iscsit_tx_login_rsp(struct iscsit_conn *, u8, u8);
extern void iscsit_print_session_params(struct iscsi_session *); extern void iscsit_print_session_params(struct iscsi_session *);
extern int iscsit_print_dev_to_proc(char *, char **, off_t, int); extern int iscsit_print_dev_to_proc(char *, char **, off_t, int);
extern int iscsit_print_sessions_to_proc(char *, char **, off_t, int); extern int iscsit_print_sessions_to_proc(char *, char **, off_t, int);
extern int iscsit_print_tpg_to_proc(char *, char **, off_t, int); extern int iscsit_print_tpg_to_proc(char *, char **, off_t, int);
extern int rx_data(struct iscsi_conn *, struct kvec *, int, int); extern int rx_data(struct iscsit_conn *, struct kvec *, int, int);
extern int tx_data(struct iscsi_conn *, struct kvec *, int, int); extern int tx_data(struct iscsit_conn *, struct kvec *, int, int);
extern void iscsit_collect_login_stats(struct iscsi_conn *, u8, u8); extern void iscsit_collect_login_stats(struct iscsit_conn *, u8, u8);
extern struct iscsi_tiqn *iscsit_snmp_get_tiqn(struct iscsi_conn *); extern struct iscsi_tiqn *iscsit_snmp_get_tiqn(struct iscsit_conn *);
extern void iscsit_fill_cxn_timeout_err_stats(struct iscsi_session *); extern void iscsit_fill_cxn_timeout_err_stats(struct iscsi_session *);
#endif /*** ISCSI_TARGET_UTIL_H ***/ #endif /*** ISCSI_TARGET_UTIL_H ***/
...@@ -478,7 +478,7 @@ struct iscsit_cmd { ...@@ -478,7 +478,7 @@ struct iscsit_cmd {
/* TMR Request when iscsi_opcode == ISCSI_OP_SCSI_TMFUNC */ /* TMR Request when iscsi_opcode == ISCSI_OP_SCSI_TMFUNC */
struct iscsi_tmr_req *tmr_req; struct iscsi_tmr_req *tmr_req;
/* Connection this command is alligient to */ /* Connection this command is alligient to */
struct iscsi_conn *conn; struct iscsit_conn *conn;
/* Pointer to connection recovery entry */ /* Pointer to connection recovery entry */
struct iscsi_conn_recovery *cr; struct iscsi_conn_recovery *cr;
/* Session the command is part of, used for connection recovery */ /* Session the command is part of, used for connection recovery */
...@@ -508,7 +508,7 @@ struct iscsi_tmr_req { ...@@ -508,7 +508,7 @@ struct iscsi_tmr_req {
struct se_tmr_req *se_tmr_req; struct se_tmr_req *se_tmr_req;
}; };
struct iscsi_conn { struct iscsit_conn {
wait_queue_head_t queues_wq; wait_queue_head_t queues_wq;
/* Authentication Successful for this connection */ /* Authentication Successful for this connection */
u8 auth_complete; u8 auth_complete;
...@@ -710,7 +710,7 @@ struct iscsi_login { ...@@ -710,7 +710,7 @@ struct iscsi_login {
char rsp[ISCSI_HDR_LEN]; char rsp[ISCSI_HDR_LEN];
char *req_buf; char *req_buf;
char *rsp_buf; char *rsp_buf;
struct iscsi_conn *conn; struct iscsit_conn *conn;
struct iscsi_np *np; struct iscsi_np *np;
} ____cacheline_aligned; } ____cacheline_aligned;
...@@ -898,9 +898,9 @@ static inline u32 session_get_next_ttt(struct iscsi_session *session) ...@@ -898,9 +898,9 @@ static inline u32 session_get_next_ttt(struct iscsi_session *session)
return ttt; return ttt;
} }
extern struct iscsit_cmd *iscsit_find_cmd_from_itt(struct iscsi_conn *, itt_t); extern struct iscsit_cmd *iscsit_find_cmd_from_itt(struct iscsit_conn *, itt_t);
extern void iscsit_thread_check_cpumask(struct iscsi_conn *conn, extern void iscsit_thread_check_cpumask(struct iscsit_conn *conn,
struct task_struct *p, struct task_struct *p,
int mode); int mode);
......
...@@ -12,26 +12,26 @@ struct iscsit_transport { ...@@ -12,26 +12,26 @@ struct iscsit_transport {
struct module *owner; struct module *owner;
struct list_head t_node; struct list_head t_node;
int (*iscsit_setup_np)(struct iscsi_np *, struct sockaddr_storage *); int (*iscsit_setup_np)(struct iscsi_np *, struct sockaddr_storage *);
int (*iscsit_accept_np)(struct iscsi_np *, struct iscsi_conn *); int (*iscsit_accept_np)(struct iscsi_np *, struct iscsit_conn *);
void (*iscsit_free_np)(struct iscsi_np *); void (*iscsit_free_np)(struct iscsi_np *);
void (*iscsit_wait_conn)(struct iscsi_conn *); void (*iscsit_wait_conn)(struct iscsit_conn *);
void (*iscsit_free_conn)(struct iscsi_conn *); void (*iscsit_free_conn)(struct iscsit_conn *);
int (*iscsit_get_login_rx)(struct iscsi_conn *, struct iscsi_login *); int (*iscsit_get_login_rx)(struct iscsit_conn *, struct iscsi_login *);
int (*iscsit_put_login_tx)(struct iscsi_conn *, struct iscsi_login *, u32); int (*iscsit_put_login_tx)(struct iscsit_conn *, struct iscsi_login *, u32);
int (*iscsit_immediate_queue)(struct iscsi_conn *, struct iscsit_cmd *, int); int (*iscsit_immediate_queue)(struct iscsit_conn *, struct iscsit_cmd *, int);
int (*iscsit_response_queue)(struct iscsi_conn *, struct iscsit_cmd *, int); int (*iscsit_response_queue)(struct iscsit_conn *, struct iscsit_cmd *, int);
int (*iscsit_get_dataout)(struct iscsi_conn *, struct iscsit_cmd *, bool); int (*iscsit_get_dataout)(struct iscsit_conn *, struct iscsit_cmd *, bool);
int (*iscsit_queue_data_in)(struct iscsi_conn *, struct iscsit_cmd *); int (*iscsit_queue_data_in)(struct iscsit_conn *, struct iscsit_cmd *);
int (*iscsit_queue_status)(struct iscsi_conn *, struct iscsit_cmd *); int (*iscsit_queue_status)(struct iscsit_conn *, struct iscsit_cmd *);
void (*iscsit_aborted_task)(struct iscsi_conn *, struct iscsit_cmd *); void (*iscsit_aborted_task)(struct iscsit_conn *, struct iscsit_cmd *);
int (*iscsit_xmit_pdu)(struct iscsi_conn *, struct iscsit_cmd *, int (*iscsit_xmit_pdu)(struct iscsit_conn *, struct iscsit_cmd *,
struct iscsi_datain_req *, const void *, u32); struct iscsi_datain_req *, const void *, u32);
void (*iscsit_unmap_cmd)(struct iscsi_conn *, struct iscsit_cmd *); void (*iscsit_unmap_cmd)(struct iscsit_conn *, struct iscsit_cmd *);
void (*iscsit_get_rx_pdu)(struct iscsi_conn *); void (*iscsit_get_rx_pdu)(struct iscsit_conn *);
int (*iscsit_validate_params)(struct iscsi_conn *); int (*iscsit_validate_params)(struct iscsit_conn *);
void (*iscsit_get_r2t_ttt)(struct iscsi_conn *, struct iscsit_cmd *, void (*iscsit_get_r2t_ttt)(struct iscsit_conn *, struct iscsit_cmd *,
struct iscsi_r2t *); struct iscsi_r2t *);
enum target_prot_op (*iscsit_get_sup_prot_ops)(struct iscsi_conn *); enum target_prot_op (*iscsit_get_sup_prot_ops)(struct iscsit_conn *);
}; };
static inline void *iscsit_priv_cmd(struct iscsit_cmd *cmd) static inline void *iscsit_priv_cmd(struct iscsit_cmd *cmd)
...@@ -51,57 +51,57 @@ extern void iscsit_put_transport(struct iscsit_transport *); ...@@ -51,57 +51,57 @@ extern void iscsit_put_transport(struct iscsit_transport *);
/* /*
* From iscsi_target.c * From iscsi_target.c
*/ */
extern int iscsit_setup_scsi_cmd(struct iscsi_conn *, struct iscsit_cmd *, extern int iscsit_setup_scsi_cmd(struct iscsit_conn *, struct iscsit_cmd *,
unsigned char *); unsigned char *);
extern void iscsit_set_unsolicited_dataout(struct iscsit_cmd *); extern void iscsit_set_unsolicited_dataout(struct iscsit_cmd *);
extern int iscsit_process_scsi_cmd(struct iscsi_conn *, struct iscsit_cmd *, extern int iscsit_process_scsi_cmd(struct iscsit_conn *, struct iscsit_cmd *,
struct iscsi_scsi_req *); struct iscsi_scsi_req *);
extern int extern int
__iscsit_check_dataout_hdr(struct iscsi_conn *, void *, __iscsit_check_dataout_hdr(struct iscsit_conn *, void *,
struct iscsit_cmd *, u32, bool *); struct iscsit_cmd *, u32, bool *);
extern int extern int
iscsit_check_dataout_hdr(struct iscsi_conn *conn, void *buf, iscsit_check_dataout_hdr(struct iscsit_conn *conn, void *buf,
struct iscsit_cmd **out_cmd); struct iscsit_cmd **out_cmd);
extern int iscsit_check_dataout_payload(struct iscsit_cmd *, struct iscsi_data *, extern int iscsit_check_dataout_payload(struct iscsit_cmd *, struct iscsi_data *,
bool); bool);
extern int iscsit_setup_nop_out(struct iscsi_conn *, struct iscsit_cmd *, extern int iscsit_setup_nop_out(struct iscsit_conn *, struct iscsit_cmd *,
struct iscsi_nopout *); struct iscsi_nopout *);
extern int iscsit_process_nop_out(struct iscsi_conn *, struct iscsit_cmd *, extern int iscsit_process_nop_out(struct iscsit_conn *, struct iscsit_cmd *,
struct iscsi_nopout *); struct iscsi_nopout *);
extern int iscsit_handle_logout_cmd(struct iscsi_conn *, struct iscsit_cmd *, extern int iscsit_handle_logout_cmd(struct iscsit_conn *, struct iscsit_cmd *,
unsigned char *); unsigned char *);
extern int iscsit_handle_task_mgt_cmd(struct iscsi_conn *, struct iscsit_cmd *, extern int iscsit_handle_task_mgt_cmd(struct iscsit_conn *, struct iscsit_cmd *,
unsigned char *); unsigned char *);
extern int iscsit_setup_text_cmd(struct iscsi_conn *, struct iscsit_cmd *, extern int iscsit_setup_text_cmd(struct iscsit_conn *, struct iscsit_cmd *,
struct iscsi_text *); struct iscsi_text *);
extern int iscsit_process_text_cmd(struct iscsi_conn *, struct iscsit_cmd *, extern int iscsit_process_text_cmd(struct iscsit_conn *, struct iscsit_cmd *,
struct iscsi_text *); struct iscsi_text *);
extern void iscsit_build_rsp_pdu(struct iscsit_cmd *, struct iscsi_conn *, extern void iscsit_build_rsp_pdu(struct iscsit_cmd *, struct iscsit_conn *,
bool, struct iscsi_scsi_rsp *); bool, struct iscsi_scsi_rsp *);
extern void iscsit_build_nopin_rsp(struct iscsit_cmd *, struct iscsi_conn *, extern void iscsit_build_nopin_rsp(struct iscsit_cmd *, struct iscsit_conn *,
struct iscsi_nopin *, bool); struct iscsi_nopin *, bool);
extern void iscsit_build_task_mgt_rsp(struct iscsit_cmd *, struct iscsi_conn *, extern void iscsit_build_task_mgt_rsp(struct iscsit_cmd *, struct iscsit_conn *,
struct iscsi_tm_rsp *); struct iscsi_tm_rsp *);
extern int iscsit_build_text_rsp(struct iscsit_cmd *, struct iscsi_conn *, extern int iscsit_build_text_rsp(struct iscsit_cmd *, struct iscsit_conn *,
struct iscsi_text_rsp *, struct iscsi_text_rsp *,
enum iscsit_transport_type); enum iscsit_transport_type);
extern void iscsit_build_reject(struct iscsit_cmd *, struct iscsi_conn *, extern void iscsit_build_reject(struct iscsit_cmd *, struct iscsit_conn *,
struct iscsi_reject *); struct iscsi_reject *);
extern int iscsit_build_logout_rsp(struct iscsit_cmd *, struct iscsi_conn *, extern int iscsit_build_logout_rsp(struct iscsit_cmd *, struct iscsit_conn *,
struct iscsi_logout_rsp *); struct iscsi_logout_rsp *);
extern int iscsit_logout_post_handler(struct iscsit_cmd *, struct iscsi_conn *); extern int iscsit_logout_post_handler(struct iscsit_cmd *, struct iscsit_conn *);
extern int iscsit_queue_rsp(struct iscsi_conn *, struct iscsit_cmd *); extern int iscsit_queue_rsp(struct iscsit_conn *, struct iscsit_cmd *);
extern void iscsit_aborted_task(struct iscsi_conn *, struct iscsit_cmd *); extern void iscsit_aborted_task(struct iscsit_conn *, struct iscsit_cmd *);
extern int iscsit_add_reject(struct iscsi_conn *, u8, unsigned char *); extern int iscsit_add_reject(struct iscsit_conn *, u8, unsigned char *);
extern int iscsit_reject_cmd(struct iscsit_cmd *, u8, unsigned char *); extern int iscsit_reject_cmd(struct iscsit_cmd *, u8, unsigned char *);
extern int iscsit_handle_snack(struct iscsi_conn *, unsigned char *); extern int iscsit_handle_snack(struct iscsit_conn *, unsigned char *);
extern void iscsit_build_datain_pdu(struct iscsit_cmd *, struct iscsi_conn *, extern void iscsit_build_datain_pdu(struct iscsit_cmd *, struct iscsit_conn *,
struct iscsi_datain *, struct iscsi_datain *,
struct iscsi_data_rsp *, bool); struct iscsi_data_rsp *, bool);
extern int iscsit_build_r2ts_for_cmd(struct iscsi_conn *, struct iscsit_cmd *, extern int iscsit_build_r2ts_for_cmd(struct iscsit_conn *, struct iscsit_cmd *,
bool); bool);
extern int iscsit_immediate_queue(struct iscsi_conn *, struct iscsit_cmd *, int); extern int iscsit_immediate_queue(struct iscsit_conn *, struct iscsit_cmd *, int);
extern int iscsit_response_queue(struct iscsi_conn *, struct iscsit_cmd *, int); extern int iscsit_response_queue(struct iscsit_conn *, struct iscsit_cmd *, int);
/* /*
* From iscsi_target_device.c * From iscsi_target_device.c
*/ */
...@@ -109,7 +109,7 @@ extern void iscsit_increment_maxcmdsn(struct iscsit_cmd *, struct iscsi_session ...@@ -109,7 +109,7 @@ extern void iscsit_increment_maxcmdsn(struct iscsit_cmd *, struct iscsi_session
/* /*
* From iscsi_target_erl0.c * From iscsi_target_erl0.c
*/ */
extern void iscsit_cause_connection_reinstatement(struct iscsi_conn *, int); extern void iscsit_cause_connection_reinstatement(struct iscsit_conn *, int);
/* /*
* From iscsi_target_erl1.c * From iscsi_target_erl1.c
*/ */
...@@ -118,33 +118,33 @@ extern void iscsit_stop_dataout_timer(struct iscsit_cmd *); ...@@ -118,33 +118,33 @@ extern void iscsit_stop_dataout_timer(struct iscsit_cmd *);
/* /*
* From iscsi_target_tmr.c * From iscsi_target_tmr.c
*/ */
extern int iscsit_tmr_post_handler(struct iscsit_cmd *, struct iscsi_conn *); extern int iscsit_tmr_post_handler(struct iscsit_cmd *, struct iscsit_conn *);
/* /*
* From iscsi_target_util.c * From iscsi_target_util.c
*/ */
extern struct iscsit_cmd *iscsit_allocate_cmd(struct iscsi_conn *, int); extern struct iscsit_cmd *iscsit_allocate_cmd(struct iscsit_conn *, int);
extern int iscsit_sequence_cmd(struct iscsi_conn *, struct iscsit_cmd *, extern int iscsit_sequence_cmd(struct iscsit_conn *, struct iscsit_cmd *,
unsigned char *, __be32); unsigned char *, __be32);
extern void iscsit_release_cmd(struct iscsit_cmd *); extern void iscsit_release_cmd(struct iscsit_cmd *);
extern void iscsit_free_cmd(struct iscsit_cmd *, bool); extern void iscsit_free_cmd(struct iscsit_cmd *, bool);
extern void iscsit_add_cmd_to_immediate_queue(struct iscsit_cmd *, extern void iscsit_add_cmd_to_immediate_queue(struct iscsit_cmd *,
struct iscsi_conn *, u8); struct iscsit_conn *, u8);
extern struct iscsit_cmd * extern struct iscsit_cmd *
iscsit_find_cmd_from_itt_or_dump(struct iscsi_conn *conn, iscsit_find_cmd_from_itt_or_dump(struct iscsit_conn *conn,
itt_t init_task_tag, u32 length); itt_t init_task_tag, u32 length);
/* /*
* From iscsi_target_nego.c * From iscsi_target_nego.c
*/ */
extern int iscsi_target_check_login_request(struct iscsi_conn *, extern int iscsi_target_check_login_request(struct iscsit_conn *,
struct iscsi_login *); struct iscsi_login *);
/* /*
* From iscsi_target_login.c * From iscsi_target_login.c
*/ */
extern __printf(2, 3) int iscsi_change_param_sprintf( extern __printf(2, 3) int iscsi_change_param_sprintf(
struct iscsi_conn *, const char *, ...); struct iscsit_conn *, const char *, ...);
/* /*
* From iscsi_target_parameters.c * From iscsi_target_parameters.c
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment