]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9dafb06305087f22f84bd1cfc114df645c0b2e6
tree26b37dbcc06ed8b12ff07482eb2fe060b89d3e1d
parent3782a140727cba4a90db0db887e45f5a080be419
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