From 57199e1e8966316fe2a4cbe19d9afcf6048eb7e3 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Fri, 22 Dec 2017 10:21:33 +0800 Subject: [PATCH] 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: Ziye Yang Reviewed-on: https://review.gerrithub.io/392719 Tested-by: SPDK Automated Test System Reviewed-by: Daniel Verkamp Reviewed-by: --- lib/iscsi/conn.c | 2 +- lib/iscsi/iscsi.c | 4 ++-- lib/iscsi/iscsi.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/iscsi/conn.c b/lib/iscsi/conn.c index 27bd1aabf..476fdb462 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -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; diff --git a/lib/iscsi/iscsi.c b/lib/iscsi/iscsi.c index 4ffc1673e..02ee59e13 100644 --- a/lib/iscsi/iscsi.c +++ b/lib/iscsi/iscsi.c @@ -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 diff --git a/lib/iscsi/iscsi.h b/lib/iscsi/iscsi.h index 72f1523b9..616718beb 100644 --- a/lib/iscsi/iscsi.h +++ b/lib/iscsi/iscsi.h @@ -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)