mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
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>
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
struct backing_dev_info;
|
||||
struct bdi_writeback;
|
||||
struct bio;
|
||||
struct io_comp_batch;
|
||||
struct export_operations;
|
||||
struct fiemap_extent_info;
|
||||
struct hd_geometry;
|
||||
@@ -2071,7 +2072,8 @@ struct file_operations {
|
||||
ssize_t (*write) (struct file *, const char __user *, size_t, loff_t *);
|
||||
ssize_t (*read_iter) (struct kiocb *, struct iov_iter *);
|
||||
ssize_t (*write_iter) (struct kiocb *, struct iov_iter *);
|
||||
int (*iopoll)(struct kiocb *kiocb, unsigned int flags);
|
||||
int (*iopoll)(struct kiocb *kiocb, struct io_comp_batch *,
|
||||
unsigned int flags);
|
||||
int (*iterate) (struct file *, struct dir_context *);
|
||||
int (*iterate_shared) (struct file *, struct dir_context *);
|
||||
__poll_t (*poll) (struct file *, struct poll_table_struct *);
|
||||
|
||||
Reference in New Issue
Block a user