nvme: Only check timeouts on requests from the same process

Change-Id: I80521c4c01daf033319f88cf273255387a7b5248
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/408403
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Ben Walker 2018-04-19 15:34:07 -07:00 committed by Daniel Verkamp
parent b4ce4e378c
commit ddeaeeec19

View File

@ -2017,9 +2017,14 @@ 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) {
continue;
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) {