Commit 36d2149a authored by Jim Harris's avatar Jim Harris Committed by Changpeng Liu
Browse files

nvme: allow admin queue fabrics cmds while resetting



For fabrics controllers, the fabrics cmds are what gets
the controller out of reset.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I6804874e867466669a55dff11a0a865add8bbc99

Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453937


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
parent 79fad08a
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -598,6 +598,11 @@ nvme_qpair_submit_request(struct spdk_nvme_qpair *qpair, struct nvme_request *re

	if (spdk_likely(qpair->is_enabled)) {
		return nvme_transport_qpair_submit_request(qpair, req);
	} else if (nvme_qpair_is_admin_queue(qpair) && req->cmd.opc == SPDK_NVME_OPC_FABRIC) {
		/* Always allow fabrics commands through on the admin qpair - these get
		 *  the controller out of reset state.
		 */
		return nvme_transport_qpair_submit_request(qpair, req);
	} else {
		/* The controller is being reset - queue this request and
		 *  submit it later when the reset is completed.