Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme_pcie: Call transport_ctrlr_disconnect_qpair_done() if ctrlr_disa…
…ble_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 spdk#2931 Signed-off-by: Shuhei Matsumoto <[email protected]> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17002 (master) (cherry picked from commit a475aed) Change-Id: I26cabb94e5744e3a2d975670adbf2e4e48d5bd7a Signed-off-by: Krzysztof Karas <[email protected]> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17697 Reviewed-by: Konrad Sztyber <[email protected]> Tested-by: SPDK CI Jenkins <[email protected]> Reviewed-by: Ben Walker <[email protected]> Reviewed-by: Jim Harris <[email protected]>
- Loading branch information