block: add ->poll_bio to block_device_operations
authorMing Lei <ming.lei@redhat.com>
Sat, 5 Mar 2022 02:08:03 +0000 (21:08 -0500)
committerMike Snitzer <snitzer@redhat.com>
Wed, 9 Mar 2022 17:21:35 +0000 (12:21 -0500)
commit69fe0f29892077f14b56e2a479b6bcf533209d53
tree26b37dbcc06ed8b12ff07482eb2fe060b89d3e1d
parent168678d765d3659fddffe80a70668488066a9569
block: add ->poll_bio to block_device_operations

Prepare for supporting IO polling for bio-based driver.

Add ->poll_bio callback so that bio-based driver can provide their own
logic for polling bio.

Also fix ->submit_bio_bio typo in comment block above
__submit_bio_noacct.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
block/blk-core.c
block/genhd.c
include/linux/blkdev.h