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:
parent
b4ce4e378c
commit
ddeaeeec19
@ -2017,11 +2017,16 @@ nvme_pcie_qpair_check_timeout(struct spdk_nvme_qpair *qpair)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nvme_qpair_is_admin_queue(qpair) &&
|
if (nvme_qpair_is_admin_queue(qpair)) {
|
||||||
tr->req->cmd.opc == SPDK_NVME_OPC_ASYNC_EVENT_REQUEST) {
|
if (tr->req->pid != getpid()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tr->req->cmd.opc == SPDK_NVME_OPC_ASYNC_EVENT_REQUEST) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (tr->submit_tick + qpair->active_proc->timeout_ticks > t02) {
|
if (tr->submit_tick + qpair->active_proc->timeout_ticks > t02) {
|
||||||
/* The trackers are in order, so as soon as one has not timed out,
|
/* The trackers are in order, so as soon as one has not timed out,
|
||||||
* stop iterating.
|
* stop iterating.
|
||||||
|
Loading…
Reference in New Issue
Block a user