From: Keith Busch <kbusch@kernel.org>
To: linux-nvme@lists.infradead.org, hch@lst.de, sagi@grimberg.me,
linux-block@vger.kernel.org, axboe@kernel.dk
Cc: Keith Busch <kbusch@kernel.org>,
Johannes Thumshirn <johannes.thumshirn@wdc.com>
Subject: [PATCHv3 2/2] nvme: cancel requests for real
Date: Thu, 28 May 2020 08:34:41 -0700 [thread overview]
Message-ID: <20200528153441.3501777-2-kbusch@kernel.org> (raw)
In-Reply-To: <20200528153441.3501777-1-kbusch@kernel.org>
Once the driver decides to cancel requests, the concept of those
requests timing out ceases to exist. Use __blk_mq_complete_request() to
bypass fake timeout error injection so that request reclaim may
proceed.
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
---
drivers/nvme/host/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index ba860efd250d..f65a0b6cd988 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -310,7 +310,7 @@ bool nvme_cancel_request(struct request *req, void *data, bool reserved)
return true;
nvme_req(req)->status = NVME_SC_HOST_ABORTED_CMD;
- blk_mq_complete_request(req);
+ __blk_mq_complete_request(req);
return true;
}
EXPORT_SYMBOL_GPL(nvme_cancel_request);
--
2.24.1
next prev parent reply other threads:[~2020-05-28 15:34 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-28 15:34 [PATCHv3 1/2] blk-mq: export __blk_mq_complete_request Keith Busch
2020-05-28 15:34 ` Keith Busch [this message]
2020-05-28 18:39 ` [PATCHv3 2/2] nvme: cancel requests for real Alan Adamson
2020-05-28 19:11 ` Keith Busch
2020-05-28 19:14 ` Keith Busch
2020-05-28 20:21 ` Alan Adamson
2020-05-29 3:39 ` Ming Lei
2020-05-29 13:22 ` Keith Busch
2020-05-29 22:23 ` Ming Lei
2020-05-29 22:32 ` Keith Busch
2020-05-29 22:46 ` Ming Lei
2020-05-29 3:43 ` Ming Lei
2020-05-28 15:36 ` [PATCHv3 1/2] blk-mq: export __blk_mq_complete_request Jens Axboe
2020-05-29 12:27 ` Christoph Hellwig
2020-05-29 14:18 ` Jens Axboe
2020-05-28 18:11 ` Dongli Zhang
2020-05-29 7:28 ` Daniel Wagner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200528153441.3501777-2-kbusch@kernel.org \
--to=kbusch@kernel.org \
--cc=axboe@kernel.dk \
--cc=hch@lst.de \
--cc=johannes.thumshirn@wdc.com \
--cc=linux-block@vger.kernel.org \
--cc=linux-nvme@lists.infradead.org \
--cc=sagi@grimberg.me \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).