nvme: add calls to nvme_qpair_disable
These were accidentally removed in a previous patch. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Idab274427c064ff8aff1cdca2dd80d7d24e8cce4 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453747 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
d27ed1073f
commit
67882ed76f
@ -849,6 +849,12 @@ spdk_nvme_ctrlr_reset(struct spdk_nvme_ctrlr *ctrlr)
|
||||
nvme_qpair_complete_error_reqs(qpair);
|
||||
}
|
||||
|
||||
/* Disable all queues before disabling the controller hardware. */
|
||||
nvme_qpair_disable(ctrlr->adminq);
|
||||
TAILQ_FOREACH(qpair, &ctrlr->active_io_qpairs, tailq) {
|
||||
nvme_qpair_disable(qpair);
|
||||
}
|
||||
|
||||
/* Doorbell buffer config is invalid during reset */
|
||||
nvme_ctrlr_free_doorbell_buffer(ctrlr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user