From 38fb230249a69284180de449e27e9804c0232993 Mon Sep 17 00:00:00 2001 From: Ziye Yang Date: Thu, 1 Mar 2018 15:00:55 +0800 Subject: [PATCH] lib/iscsi: move location of spdk_iscsi_conn_handle_queued_datain_tasks The better location is to put this function in the end of process_read_task_completion which can match the the same function call in spdk_iscsi_op_scsi_read. Change-Id: I7dbfb23e2c469e0be22e148299643a99b93c8018 Signed-off-by: Ziye Yang Reviewed-on: https://review.gerrithub.io/401985 Tested-by: SPDK Automated Test System Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- lib/iscsi/conn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/iscsi/conn.c b/lib/iscsi/conn.c index 85816d659..69b5a54b3 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -813,6 +813,8 @@ process_read_task_completion(struct spdk_iscsi_conn *conn, spdk_iscsi_task_put(task); } process_completed_read_subtask_list(conn, primary); + + spdk_iscsi_conn_handle_queued_datain_tasks(conn); } void @@ -1175,8 +1177,6 @@ spdk_iscsi_conn_execute(struct spdk_iscsi_conn *conn) return -1; } - spdk_iscsi_conn_handle_queued_datain_tasks(conn); - return 0; }