Commit 57199e1e authored by Ziye Yang's avatar Ziye Yang Committed by Daniel Verkamp
Browse files

iscsi: change name of function spdk_iscsi_conn_handle_queued_tasks



Reason: It only handles the queue datain tasks. After the changing,
it would be more accurate for the code reading.

Change-Id: I87999f811810cadd4b58d99be1cdeba0a1a7503f
Signed-off-by: default avatarZiye Yang <optimistyzy@gmail.com>
Reviewed-on: https://review.gerrithub.io/392719


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatar <shuhei.matsumoto.xt@hitachi.com>
parent 1b7ce805
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1422,7 +1422,7 @@ spdk_iscsi_conn_execute(struct spdk_iscsi_conn *conn)
		}
	}

	spdk_iscsi_conn_handle_queued_tasks(conn);
	spdk_iscsi_conn_handle_queued_datain_tasks(conn);

	if (conn_active) {
		return 1;
+2 −2
Original line number Diff line number Diff line
@@ -2900,7 +2900,7 @@ static void spdk_iscsi_queue_mgmt_task(struct spdk_iscsi_conn *conn,
	spdk_scsi_dev_queue_mgmt_task(conn->dev, &task->scsi, func);
}

int spdk_iscsi_conn_handle_queued_tasks(struct spdk_iscsi_conn *conn)
int spdk_iscsi_conn_handle_queued_datain_tasks(struct spdk_iscsi_conn *conn)
{
	struct spdk_iscsi_task *task;

@@ -2978,7 +2978,7 @@ static int spdk_iscsi_op_scsi_read(struct spdk_iscsi_conn *conn,

	TAILQ_INSERT_TAIL(&conn->queued_datain_tasks, task, link);

	return spdk_iscsi_conn_handle_queued_tasks(conn);
	return spdk_iscsi_conn_handle_queued_datain_tasks(conn);
}

static int
+1 −1
Original line number Diff line number Diff line
@@ -361,7 +361,7 @@ void spdk_iscsi_task_mgmt_cpl(struct spdk_scsi_task *scsi_task);
/* Memory management */
void spdk_put_pdu(struct spdk_iscsi_pdu *pdu);
struct spdk_iscsi_pdu *spdk_get_pdu(void);
int spdk_iscsi_conn_handle_queued_tasks(struct spdk_iscsi_conn *conn);
int spdk_iscsi_conn_handle_queued_datain_tasks(struct spdk_iscsi_conn *conn);

static inline int
spdk_get_immediate_data_buffer_size(void)