nvmf: use same subsystem pointer

Change-Id: I834299db8310dbaf207deee5db4c1d5034f4bedd
Signed-off-by: GangCao <gang.cao@intel.com>
This commit is contained in:
GangCao 2017-01-25 12:35:31 +08:00 committed by Daniel Verkamp
parent f3b3fe5b36
commit 2ea9823c8a

View File

@ -364,7 +364,7 @@ spdk_nvmf_request_exec(struct spdk_nvmf_request *req)
if (subsystem->subtype == SPDK_NVMF_SUBTYPE_DISCOVERY) {
status = nvmf_process_discovery_cmd(req);
} else {
status = session->subsys->ops->process_admin_cmd(req);
status = subsystem->ops->process_admin_cmd(req);
}
} else {
status = session->subsys->ops->process_io_cmd(req);