aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorKanchan Joshi <joshi.k@samsung.com>2022-08-23 21:44:42 +0530
committerJens Axboe <axboe@kernel.dk>2022-09-21 10:30:42 -0600
commitc6e99ea482e2a9e1fef2488891242f9749584225 (patch)
tree8b112f1eda1d76b3a8602aa92bf0e0aa499a632e /block
parentio_uring: add iopoll infrastructure for io_uring_cmd (diff)
downloadlinux-dev-c6e99ea482e2a9e1fef2488891242f9749584225.tar.xz
linux-dev-c6e99ea482e2a9e1fef2488891242f9749584225.zip
block: export blk_rq_is_poll
This is in preparation to support iopoll for nvme passthrough. Signed-off-by: Kanchan Joshi <joshi.k@samsung.com> Link: https://lore.kernel.org/r/20220823161443.49436-4-joshi.k@samsung.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index c96c8c4f751b..0df20184cc3e 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1233,7 +1233,7 @@ static void blk_end_sync_rq(struct request *rq, blk_status_t ret)
complete(&wait->done);
}
-static bool blk_rq_is_poll(struct request *rq)
+bool blk_rq_is_poll(struct request *rq)
{
if (!rq->mq_hctx)
return false;
@@ -1243,6 +1243,7 @@ static bool blk_rq_is_poll(struct request *rq)
return false;
return true;
}
+EXPORT_SYMBOL_GPL(blk_rq_is_poll);
static void blk_rq_poll_completion(struct request *rq, struct completion *wait)
{