ee909296b4
When testing iscsi reset with bdevperf, all tasks before will be canceled. And the return status will be set to CANCELED. We need to trace this status. For submit_td, sometimes, segfault is thrown because in bdev_iscsi_io_complete the iscsi_io->submit_td points to a invalid address. And assigning the submit_td in bdev_iscsi_submit_request prevent this from happening. Already tested with bdevperf and bdevio for all io types. Change-Id: Ib2bf8e2a111c4b3edb5ed88dfd2c91ed6acc5c48 Signed-off-by: Chunyang Hui <Chunyang.hui@intel.com> Reviewed-on: https://review.gerrithub.io/419932 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ziye Yang <optimistyzy@gmail.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>