From: Praveen Kumar <kumarpraveen@linux.microsoft.com>
To: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: axboe@kernel.dk
Subject: [PATCH] blk-mq: export blk_mq_submit_bio symbol
Date: Thu, 9 Sep 2021 11:06:53 +0530 [thread overview]
Message-ID: <20210909053653.144360-1-kumarpraveen@linux.microsoft.com> (raw)
There are use-cases like replication where need to hook the blk I/O
operations for devices and perform specific operation and fallback to
its original I/O operations.
Prior to v5.9 there was make_request_fn and then blk_mq_submit_bio
exported apis, which provided infrastructure to drivers to develop these
features. However in v5.10-rc1 with below commit the API was removed
from the export list.
Previous commit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v5.10-rc1&id=681cc5e8667e8579a2da8fa4090c48a2d73fc3bb
This patch exports the blk_mq_submit_bio symbol to provide flexibility
to the drivers.
Signed-off-by: Praveen Kumar <kumarpraveen@linux.microsoft.com>
---
block/blk-mq.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 65d3a63aecc6..40a9b085f029 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -2283,6 +2283,7 @@ blk_qc_t blk_mq_submit_bio(struct bio *bio)
blk_queue_exit(q);
return BLK_QC_T_NONE;
}
+EXPORT_SYMBOL_GPL(blk_mq_submit_bio);
static size_t order_to_size(unsigned int order)
{
--
2.25.1
next reply other threads:[~2021-09-09 5:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-09 5:36 Praveen Kumar [this message]
2021-09-09 5:48 ` [PATCH] blk-mq: export blk_mq_submit_bio symbol Christoph Hellwig
2021-09-10 11:54 ` Praveen Kumar
2021-09-09 16:16 ` Chaitanya Kulkarni
2021-09-13 4:24 ` Praveen Kumar
2021-09-13 6:09 ` Christoph Hellwig
2021-09-13 7:03 ` Praveen Kumar
2021-09-20 5:30 ` Prasad Muppana
2021-09-20 20:25 ` Chaitanya Kulkarni
2021-09-22 5:45 ` Prasad Muppana
2021-09-22 14:29 ` Jens Axboe
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=20210909053653.144360-1-kumarpraveen@linux.microsoft.com \
--to=kumarpraveen@linux.microsoft.com \
--cc=axboe@kernel.dk \
--cc=linux-block@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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).