block: add a struct io_comp_batch argument to fops->iopoll()
authorJens Axboe <axboe@kernel.dk>
Tue, 12 Oct 2021 15:24:29 +0000 (09:24 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 20:40:40 +0000 (14:40 -0600)
commit5a72e899ceb465d731c413d57c6c12cdbf88303c
treeb6e745cb41973b698104f1b3b1d20684edb47395
parent013a7f95438144f4ab39a1017a0bff2765d2551a
block: add a struct io_comp_batch argument to fops->iopoll()

struct io_comp_batch contains a list head and a completion handler, which
will allow completions to more effciently completed batches of IO.

For now, no functional changes in this patch, we just define the
io_comp_batch structure and add the argument to the file_operations iopoll
handler.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
16 files changed:
block/blk-core.c
block/blk-exec.c
block/blk-mq.c
block/blk-mq.h
block/fops.c
drivers/block/rnbd/rnbd-clt.c
drivers/nvme/host/pci.c
drivers/nvme/host/rdma.c
drivers/nvme/host/tcp.c
drivers/scsi/scsi_lib.c
fs/io_uring.c
fs/iomap/direct-io.c
include/linux/blk-mq.h
include/linux/blkdev.h
include/linux/fs.h
mm/page_io.c