forked from luck/tmp_suning_uos_patched
target/iscsi: Fix spelling of "reallegiance"
Fix the spelling of this word in a function name, messages and source code comments. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Cc: Nicholas A. Bellinger <nab@linux-iscsi.org> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
0d5efb8a3c
commit
53c561dca9
|
@ -4136,7 +4136,7 @@ int iscsit_close_connection(
|
|||
/*
|
||||
* During Connection recovery drop unacknowledged out of order
|
||||
* commands for this connection, and prepare the other commands
|
||||
* for realligence.
|
||||
* for reallegiance.
|
||||
*
|
||||
* During normal operation clear the out of order commands (but
|
||||
* do not free the struct iscsi_ooo_cmdsn's) and release all
|
||||
|
@ -4144,7 +4144,7 @@ int iscsit_close_connection(
|
|||
*/
|
||||
if (atomic_read(&conn->connection_recovery)) {
|
||||
iscsit_discard_unacknowledged_ooo_cmdsns_for_conn(conn);
|
||||
iscsit_prepare_cmds_for_realligance(conn);
|
||||
iscsit_prepare_cmds_for_reallegiance(conn);
|
||||
} else {
|
||||
iscsit_clear_ooo_cmdsns_for_conn(conn);
|
||||
iscsit_release_commands_from_conn(conn);
|
||||
|
|
|
@ -312,7 +312,7 @@ int iscsit_discard_unacknowledged_ooo_cmdsns_for_conn(struct iscsi_conn *conn)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int iscsit_prepare_cmds_for_realligance(struct iscsi_conn *conn)
|
||||
int iscsit_prepare_cmds_for_reallegiance(struct iscsi_conn *conn)
|
||||
{
|
||||
u32 cmd_count = 0;
|
||||
struct iscsi_cmd *cmd, *cmd_tmp;
|
||||
|
@ -347,7 +347,7 @@ int iscsit_prepare_cmds_for_realligance(struct iscsi_conn *conn)
|
|||
|
||||
if ((cmd->iscsi_opcode != ISCSI_OP_SCSI_CMD) &&
|
||||
(cmd->iscsi_opcode != ISCSI_OP_NOOP_OUT)) {
|
||||
pr_debug("Not performing realligence on"
|
||||
pr_debug("Not performing reallegiance on"
|
||||
" Opcode: 0x%02x, ITT: 0x%08x, CmdSN: 0x%08x,"
|
||||
" CID: %hu\n", cmd->iscsi_opcode,
|
||||
cmd->init_task_tag, cmd->cmd_sn, conn->cid);
|
||||
|
@ -382,7 +382,7 @@ int iscsit_prepare_cmds_for_realligance(struct iscsi_conn *conn)
|
|||
cmd_count++;
|
||||
pr_debug("Preparing Opcode: 0x%02x, ITT: 0x%08x,"
|
||||
" CmdSN: 0x%08x, StatSN: 0x%08x, CID: %hu for"
|
||||
" realligence.\n", cmd->iscsi_opcode,
|
||||
" reallegiance.\n", cmd->iscsi_opcode,
|
||||
cmd->init_task_tag, cmd->cmd_sn, cmd->stat_sn,
|
||||
conn->cid);
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ extern int iscsit_remove_cmd_from_connection_recovery(struct iscsi_cmd *,
|
|||
struct iscsi_session *);
|
||||
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_prepare_cmds_for_realligance(struct iscsi_conn *);
|
||||
extern int iscsit_prepare_cmds_for_reallegiance(struct iscsi_conn *);
|
||||
extern int iscsit_connection_recovery_transport_reset(struct iscsi_conn *);
|
||||
|
||||
#endif /*** ISCSI_TARGET_ERL2_H ***/
|
||||
|
|
|
@ -440,14 +440,14 @@ static int iscsit_task_reassign_complete(
|
|||
break;
|
||||
default:
|
||||
pr_err("Illegal iSCSI Opcode 0x%02x during"
|
||||
" command realligence\n", cmd->iscsi_opcode);
|
||||
" command reallegiance\n", cmd->iscsi_opcode);
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (ret != 0)
|
||||
return ret;
|
||||
|
||||
pr_debug("Completed connection realligence for Opcode: 0x%02x,"
|
||||
pr_debug("Completed connection reallegiance for Opcode: 0x%02x,"
|
||||
" ITT: 0x%08x to CID: %hu.\n", cmd->iscsi_opcode,
|
||||
cmd->init_task_tag, conn->cid);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user