From eafc447ecf1ef75002977f0e3f8a4463f6c334b4 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Wed, 16 Oct 2019 13:30:02 -0700 Subject: [PATCH] changelog: add reset handling APIs Change-Id: I4c3d9c61b4fe4541a985fa0e3104ccc3a2a4a7c2 Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/471556 Tested-by: SPDK CI Jenkins Reviewed-by: Shuhei Matsumoto Reviewed-by: Jim Harris --- CHANGELOG.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29f1c7de8..edb86ea25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -135,6 +135,27 @@ Added `arbitration_burst` option for arbitration feature, and added three Added `spdk_nvme_ns_cmd_write_uncorrectable`. +Added new error handling and reporting functionality. This includes several +new API functions to facilitate applications recovering when a qpair or +controller fails. + +`spdk_nvme_ctrlr_reconnect_io_qpair` - Reconnects a failed I/O qpair. +`spdk_nvme_ctrlr_set_trid` - Sets the trid of an existing controller. Can be used to +change the trid for failover cases. +`spdk_nvme_ctrlr_is_failed` - Returns the failed state of a controller. +`spdk_nvme_ctrlr_fail` - Forces a controller into a failed state. + +Modified the return behavior of several API functions to better indicate to +applications when a qpair is failed. This list of functions includes: + +`spdk_nvme_qpair_process_completions` +`spdk_nvme_ns_cmd_*` +`spdk_nvme_ctrlr_process_admin_completions` +`spdk_nvme_ctrlr_cmd_*` + +These functions now return -ENXIO when the qpair or controller on which they +operate is failed. + ### iSCSI Portals may no longer be associated with a cpumask. The scheduling of