block: export blk_rq_is_poll

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2068237

commit c6e99ea482e2a9e1fef2488891242f9749584225
Author: Kanchan Joshi <joshi.k@samsung.com>
Date:   Tue Aug 23 21:44:42 2022 +0530

    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>

Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
This commit is contained in:
Jeff Moyer 2022-08-23 21:44:42 +05:30
parent e92ce43ad3
commit 27968a9176
2 changed files with 3 additions and 1 deletions

View File

@ -1353,7 +1353,7 @@ static enum rq_end_io_ret blk_end_sync_rq(struct request *rq, blk_status_t ret)
return RQ_END_IO_NONE;
}
static bool blk_rq_is_poll(struct request *rq)
bool blk_rq_is_poll(struct request *rq)
{
if (!rq->mq_hctx)
return false;
@ -1361,6 +1361,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)
{

View File

@ -1032,6 +1032,7 @@ int blk_rq_map_kern(struct request_queue *, struct request *, void *,
int blk_rq_append_bio(struct request *rq, struct bio *bio);
void blk_execute_rq_nowait(struct request *rq, bool at_head);
blk_status_t blk_execute_rq(struct request *rq, bool at_head);
bool blk_rq_is_poll(struct request *rq);
struct req_iterator {
struct bvec_iter iter;