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 <optimistyzy@gmail.com>
Reviewed-on: https://review.gerrithub.io/401985
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Ziye Yang 2018-03-01 15:00:55 +08:00 committed by Daniel Verkamp
parent f697ca088e
commit 38fb230249

View File

@ -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;
}