nvme: wrapper reset/enable Admin queue into a function
Change-Id: I51b312a086f18a5b5f63de27dd69e43a8cc7225d Signed-off-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-on: https://review.gerrithub.io/424914 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
a7a2e2721a
commit
cd9518e11b
@ -1551,6 +1551,13 @@ nvme_ctrlr_proc_get_devhandle(struct spdk_nvme_ctrlr *ctrlr)
|
|||||||
return devhandle;
|
return devhandle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
nvme_ctrlr_enable_admin_queue(struct spdk_nvme_ctrlr *ctrlr)
|
||||||
|
{
|
||||||
|
nvme_transport_qpair_reset(ctrlr->adminq);
|
||||||
|
nvme_qpair_enable(ctrlr->adminq);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function will be called repeatedly during initialization until the controller is ready.
|
* This function will be called repeatedly during initialization until the controller is ready.
|
||||||
*/
|
*/
|
||||||
@ -1712,9 +1719,7 @@ nvme_ctrlr_start(struct spdk_nvme_ctrlr *ctrlr)
|
|||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
nvme_transport_qpair_reset(ctrlr->adminq);
|
nvme_ctrlr_enable_admin_queue(ctrlr);
|
||||||
|
|
||||||
nvme_qpair_enable(ctrlr->adminq);
|
|
||||||
|
|
||||||
rc = nvme_ctrlr_identify(ctrlr);
|
rc = nvme_ctrlr_identify(ctrlr);
|
||||||
if (rc) {
|
if (rc) {
|
||||||
|
Loading…
Reference in New Issue
Block a user