Skip to content

Commit c6e99ea

Browse files
Kanchan Joshiaxboe
authored andcommitted
block: export blk_rq_is_poll
This is in preparation to support iopoll for nvme passthrough. Signed-off-by: Kanchan Joshi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 5756a3a commit c6e99ea

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

block/blk-mq.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ static void blk_end_sync_rq(struct request *rq, blk_status_t ret)
12331233
complete(&wait->done);
12341234
}
12351235

1236-
static bool blk_rq_is_poll(struct request *rq)
1236+
bool blk_rq_is_poll(struct request *rq)
12371237
{
12381238
if (!rq->mq_hctx)
12391239
return false;
@@ -1243,6 +1243,7 @@ static bool blk_rq_is_poll(struct request *rq)
12431243
return false;
12441244
return true;
12451245
}
1246+
EXPORT_SYMBOL_GPL(blk_rq_is_poll);
12461247

12471248
static void blk_rq_poll_completion(struct request *rq, struct completion *wait)
12481249
{

include/linux/blk-mq.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,7 @@ int blk_rq_map_kern(struct request_queue *, struct request *, void *,
980980
int blk_rq_append_bio(struct request *rq, struct bio *bio);
981981
void blk_execute_rq_nowait(struct request *rq, bool at_head);
982982
blk_status_t blk_execute_rq(struct request *rq, bool at_head);
983+
bool blk_rq_is_poll(struct request *rq);
983984

984985
struct req_iterator {
985986
struct bvec_iter iter;

0 commit comments

Comments
 (0)