diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index c09ee462b048e11d89c8279a94b8722f9e278cc8..b2e7c621ce51ffda6d1fccd0298fd35f53f0ceb4 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -1289,7 +1289,7 @@ static enum blk_eh_timer_return nvme_timeout(struct request *req, bool reserved) else nvme_poll_irqdisable(nvmeq); - if (blk_mq_request_completed(req)) { + if (blk_mq_rq_state(req) != MQ_RQ_IN_FLIGHT) { dev_warn(dev->ctrl.device, "I/O %d QID %d timeout, completion polled\n", req->tag, nvmeq->qid);