>From 858884071810c0ac99ad7e3d0efcc08b7253905f Mon Sep 17 00:00:00 2001 From: Nicholas Bellinger <nab@xxxxxxxxxxxxxxx> Date: Mon, 26 Jan 2009 00:35:00 -0800 Subject: [PATCH 2/7] [LIO-Target]: Convert iscsi_send_check_condition_and_sense -> transport_send_check_condition_and_sense() Signed-off-by: Nicholas A. Bellinger <nab@xxxxxxxxxxxxxxx> --- drivers/lio-core/iscsi_target.c | 2 +- drivers/lio-core/iscsi_target_erl0.c | 6 +++--- drivers/lio-core/iscsi_target_erl1.c | 2 +- drivers/lio-core/iscsi_target_util.c | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/lio-core/iscsi_target.c b/drivers/lio-core/iscsi_target.c index fc9b6c9..2a952d6 100644 --- a/drivers/lio-core/iscsi_target.c +++ b/drivers/lio-core/iscsi_target.c @@ -1922,7 +1922,7 @@ static inline int iscsi_handle_data_out (iscsi_conn_t *conn, unsigned char *buf) if (SESS_OPS_C(conn)->InitialR2T) { TRACE_ERROR("Received unexpected unsolicited data" " while InitialR2T=Yes, protocol error.\n"); - iscsi_send_check_condition_and_sense(SE_CMD(cmd), + transport_send_check_condition_and_sense(SE_CMD(cmd), UNEXPECTED_UNSOLICITED_DATA, 0); return(-1); } diff --git a/drivers/lio-core/iscsi_target_erl0.c b/drivers/lio-core/iscsi_target_erl0.c index 4bd5c19..98f8e90 100644 --- a/drivers/lio-core/iscsi_target_erl0.c +++ b/drivers/lio-core/iscsi_target_erl0.c @@ -62,7 +62,7 @@ extern int iscsi_close_session (iscsi_session_t *); extern int iscsi_close_connection (iscsi_conn_t *); /* From target_core_mod */ -extern int iscsi_send_check_condition_and_sense (iscsi_cmd_t *, __u8, int); +extern int transport_send_check_condition_and_sense (iscsi_cmd_t *, __u8, int); /* iscsi_set_dataout_sequence_values(): @@ -211,7 +211,7 @@ static inline int iscsi_dataout_check_unsolicited_sequence ( TRACE_ERROR("Total %u bytes exceeds FirstBurstLength: %u" " for this Unsolicited DataOut Burst.\n", first_burst_len, SESS_OPS_C(conn)->FirstBurstLength); - iscsi_send_check_condition_and_sense(cmd, + transport_send_check_condition_and_sense(cmd, INCORRECT_AMOUNT_OF_DATA, 0); return(DATAOUT_CANNOT_RECOVER); } @@ -236,7 +236,7 @@ static inline int iscsi_dataout_check_unsolicited_sequence ( " equal ExpXferLen %u.\n", first_burst_len, SESS_OPS_C(conn)->FirstBurstLength, cmd->data_length); - iscsi_send_check_condition_and_sense(cmd, + transport_send_check_condition_and_sense(cmd, INCORRECT_AMOUNT_OF_DATA, 0); return(DATAOUT_CANNOT_RECOVER); } diff --git a/drivers/lio-core/iscsi_target_erl1.c b/drivers/lio-core/iscsi_target_erl1.c index 9cb0f31..3408d82 100644 --- a/drivers/lio-core/iscsi_target_erl1.c +++ b/drivers/lio-core/iscsi_target_erl1.c @@ -1022,7 +1022,7 @@ extern int iscsi_execute_cmd (iscsi_cmd_t *cmd, int ooo) } spin_unlock_bh(&cmd->istate_lock); - return(iscsi_send_check_condition_and_sense(se_cmd, + return(transport_send_check_condition_and_sense(se_cmd, se_cmd->scsi_sense_reason, 0)); } diff --git a/drivers/lio-core/iscsi_target_util.c b/drivers/lio-core/iscsi_target_util.c index ea66704..842d09e 100644 --- a/drivers/lio-core/iscsi_target_util.c +++ b/drivers/lio-core/iscsi_target_util.c @@ -627,7 +627,7 @@ extern int iscsi_check_unsolicited_dataout (iscsi_cmd_t *cmd, unsigned char *buf if (SESS_OPS_C(conn)->InitialR2T) { TRACE_ERROR("Received unexpected unsolicited data" " while InitialR2T=Yes, protocol error.\n"); - iscsi_send_check_condition_and_sense(se_cmd, + transport_send_check_condition_and_sense(se_cmd, UNEXPECTED_UNSOLICITED_DATA, 0); return(-1); } @@ -638,7 +638,7 @@ extern int iscsi_check_unsolicited_dataout (iscsi_cmd_t *cmd, unsigned char *buf " for this Unsolicited DataOut Burst.\n", (cmd->first_burst_len + hdr->length), SESS_OPS_C(conn)->FirstBurstLength); - iscsi_send_check_condition_and_sense(se_cmd, + transport_send_check_condition_and_sense(se_cmd, INCORRECT_AMOUNT_OF_DATA, 0); return(-1); } @@ -654,7 +654,7 @@ extern int iscsi_check_unsolicited_dataout (iscsi_cmd_t *cmd, unsigned char *buf " not equal ExpXferLen %u.\n", (cmd->first_burst_len + hdr->length), SESS_OPS_C(conn)->FirstBurstLength, cmd->data_length); - iscsi_send_check_condition_and_sense(se_cmd, + transport_send_check_condition_and_sense(se_cmd, INCORRECT_AMOUNT_OF_DATA, 0); return(-1); } -- 1.5.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html