Thread (17 messages) 17 messages, 3 authors, 2021-01-29

Re: [PATCH v2 3/6] block: add iopoll method to support bio-based IO polling

From: Mike Snitzer <hidden>
Date: 2021-01-27 17:18:06
Also in: dm-devel, linux-block

On Mon, Jan 25 2021 at  7:13am -0500,
Jeffle Xu [off-list ref] wrote:
->poll_fn was introduced in commit ea435e1b9392 ("block: add a poll_fn
callback to struct request_queue") to support bio-based queues such as
nvme multipath, but was later removed in commit 529262d56dbe ("block:
remove ->poll_fn").

Given commit c62b37d96b6e ("block: move ->make_request_fn to struct
block_device_operations") restore the possibility of bio-based IO
polling support by adding an ->iopoll method to gendisk->fops.
Elevate bulk of blk_mq_poll() implementation to blk_poll() and reduce
blk_mq_poll() to blk-mq specific code that is called from blk_poll().

Signed-off-by: Jeffle Xu <jefflexu@linux.alibaba.com>
Suggested-by: Mike Snitzer <redacted>
Reviewed-by: Mike Snitzer <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help