4dd94a25a3
By moving the contents of spdk_nvme_ctrlr_reset to a new internal function, I am paving the way for providing two reset paths. One, which can be used by the user as an external API function and which provides the same legacy behavior. Specifically, that it will always fail the ctrlr after an attempted reset, and a second, internal path, which will be used by the qpair reconnect code which will defer failing the qpair to the qpair code. Change-Id: I9ec9df55c1fecc2f00476c175bcf988207c31257 Signed-off-by: Seth Howell <seth.howell@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/469933 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Alexey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>