Loading
nvme_pcie: Call transport_ctrlr_disconnect_qpair_done() if ctrlr_disable_poll() failed
nvme_ctrlr_disable_poll() continued to be called until it returned 0. However, if the corresponding drive was unresponsive, the continuous calls consumed CPU and affected other operations. If the corresponding drive is unresponsive, we cannot complete disabling the controller. Hence, call nvme_transport_ctrlr_disconnect_qpair_done() if nvme_ctrlr_disable_poll() returned any value other than -EAGAIN. Even before this patch, nvme_ctrlr_disable_poll() collected an error log if it failed. Hence, we do not have to add more error logs. Fixes issue #2931 Signed-off-by:Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17002 (master) (cherry picked from commit a475aed5) Change-Id: I26cabb94e5744e3a2d975670adbf2e4e48d5bd7a Signed-off-by:
Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17697 Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>