path: root/include/linux/blk-mq.h
diff options
authorPankaj Raghav <>2021-12-20 19:47:34 +0530
committerJens Axboe <>2021-12-21 09:38:25 -0700
commit7567defdb3c6a81e4114a03ddf3d6c158df81a76 (patch)
tree58db2804294104872c606b4f29a7e44543370b3c /include/linux/blk-mq.h
parent8d684aa889d335d791e6c7adeb070345bfbba26a (diff)
nvme: Add async passthru polling supportnvme-passthru-wip.2
IO_URING already has polling support for read and write. This patch extends that support for uring cmd passthu. The unused flag in uring_cmd struct is used to indicate if the completion should be polled. If device side polling is not enabled, then the submission request will fallback to a non-polled request. Signed-off-by: Pankaj Raghav <> Link: Signed-off-by: Jens Axboe <>
Diffstat (limited to 'include/linux/blk-mq.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h
index e35a5d835b1f..2233ccf41c19 100644
--- a/include/linux/blk-mq.h
+++ b/include/linux/blk-mq.h
@@ -933,6 +933,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,
rq_end_io_fn *end_io);
+bool blk_rq_is_poll(struct request *rq);
blk_status_t blk_execute_rq(struct request *rq, bool at_head);
struct req_iterator {