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> Subject: [PATCHv2 1/2] blk-mq: export __blk_mq_complete_request Date: Thu, 28 May 2020 08:19:30 -0700 [thread overview] Message-ID: <20200528151931.3501506-1-kbusch@kernel.org> (raw) For when drivers have a need to bypass error injection. Signed-off-by: Keith Busch <kbusch@kernel.org> --- block/blk-mq.c | 3 ++- include/linux/blk-mq.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index cac11945f602..3c61faf63e15 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -556,7 +556,7 @@ static void __blk_mq_complete_request_remote(void *data) q->mq_ops->complete(rq); } -static void __blk_mq_complete_request(struct request *rq) +void __blk_mq_complete_request(struct request *rq) { struct blk_mq_ctx *ctx = rq->mq_ctx; struct request_queue *q = rq->q; @@ -602,6 +602,7 @@ static void __blk_mq_complete_request(struct request *rq) } put_cpu(); } +EXPORT_SYMBOL(__blk_mq_complete_request); static void hctx_unlock(struct blk_mq_hw_ctx *hctx, int srcu_idx) __releases(hctx->srcu) diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index d7307795439a..cfe7eac3764e 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -494,6 +494,7 @@ void blk_mq_requeue_request(struct request *rq, bool kick_requeue_list); void blk_mq_kick_requeue_list(struct request_queue *q); void blk_mq_delay_kick_requeue_list(struct request_queue *q, unsigned long msecs); bool blk_mq_complete_request(struct request *rq); +void __blk_mq_complete_request(struct request *rq); bool blk_mq_bio_list_merge(struct request_queue *q, struct list_head *list, struct bio *bio, unsigned int nr_segs); bool blk_mq_queue_stopped(struct request_queue *q); -- 2.24.1
WARNING: multiple messages have this Message-ID (diff)
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> Subject: [PATCHv2 1/2] blk-mq: export __blk_mq_complete_request Date: Thu, 28 May 2020 08:19:30 -0700 [thread overview] Message-ID: <20200528151931.3501506-1-kbusch@kernel.org> (raw) For when drivers have a need to bypass error injection. Signed-off-by: Keith Busch <kbusch@kernel.org> --- block/blk-mq.c | 3 ++- include/linux/blk-mq.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index cac11945f602..3c61faf63e15 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -556,7 +556,7 @@ static void __blk_mq_complete_request_remote(void *data) q->mq_ops->complete(rq); } -static void __blk_mq_complete_request(struct request *rq) +void __blk_mq_complete_request(struct request *rq) { struct blk_mq_ctx *ctx = rq->mq_ctx; struct request_queue *q = rq->q; @@ -602,6 +602,7 @@ static void __blk_mq_complete_request(struct request *rq) } put_cpu(); } +EXPORT_SYMBOL(__blk_mq_complete_request); static void hctx_unlock(struct blk_mq_hw_ctx *hctx, int srcu_idx) __releases(hctx->srcu) diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index d7307795439a..cfe7eac3764e 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -494,6 +494,7 @@ void blk_mq_requeue_request(struct request *rq, bool kick_requeue_list); void blk_mq_kick_requeue_list(struct request_queue *q); void blk_mq_delay_kick_requeue_list(struct request_queue *q, unsigned long msecs); bool blk_mq_complete_request(struct request *rq); +void __blk_mq_complete_request(struct request *rq); bool blk_mq_bio_list_merge(struct request_queue *q, struct list_head *list, struct bio *bio, unsigned int nr_segs); bool blk_mq_queue_stopped(struct request_queue *q); -- 2.24.1 _______________________________________________ linux-nvme mailing list linux-nvme@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme
next reply other threads:[~2020-05-28 15:19 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-28 15:19 Keith Busch [this message] 2020-05-28 15:19 ` [PATCHv2 1/2] blk-mq: export __blk_mq_complete_request Keith Busch 2020-05-28 15:19 ` [PATCHv2 2/2] nvme: cancel requests for real Keith Busch 2020-05-28 15:19 ` Keith Busch 2020-05-28 15:23 ` Johannes Thumshirn 2020-05-28 15:23 ` Johannes Thumshirn 2020-05-28 15:22 ` [PATCHv2 1/2] blk-mq: export __blk_mq_complete_request Johannes Thumshirn 2020-05-28 15:22 ` Johannes Thumshirn 2020-05-28 15:29 ` Jens Axboe 2020-05-28 15:29 ` Jens Axboe 2020-05-28 16:42 ` Christoph Hellwig 2020-05-28 16:42 ` Christoph Hellwig 2020-05-28 18:18 ` Keith Busch 2020-05-28 18:18 ` Keith Busch 2020-05-29 12:26 ` Christoph Hellwig 2020-05-29 12:26 ` Christoph Hellwig 2020-05-29 3:44 ` Ming Lei 2020-05-29 3:44 ` Ming Lei
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=20200528151931.3501506-1-kbusch@kernel.org \ --to=kbusch@kernel.org \ --cc=axboe@kernel.dk \ --cc=hch@lst.de \ --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: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.