Commit ddeaeeec authored by Ben Walker's avatar Ben Walker Committed by Daniel Verkamp
Browse files

nvme: Only check timeouts on requests from the same process



Change-Id: I80521c4c01daf033319f88cf273255387a7b5248
Signed-off-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/408403


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent b4ce4e37
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -2017,10 +2017,15 @@ nvme_pcie_qpair_check_timeout(struct spdk_nvme_qpair *qpair)
			continue;
		}

		if (nvme_qpair_is_admin_queue(qpair) &&
		    tr->req->cmd.opc == SPDK_NVME_OPC_ASYNC_EVENT_REQUEST) {
		if (nvme_qpair_is_admin_queue(qpair)) {
			if (tr->req->pid != getpid()) {
				continue;
			}

			if (tr->req->cmd.opc == SPDK_NVME_OPC_ASYNC_EVENT_REQUEST) {
				continue;
			}
		}

		if (tr->submit_tick + qpair->active_proc->timeout_ticks > t02) {
			/* The trackers are in order, so as soon as one has not timed out,