diff options
| author | 2022-09-02 15:18:05 -0600 | |
|---|---|---|
| committer | 2022-09-21 10:30:43 -0600 | |
| commit | de97fcb30316410a2c46be102f074a454ecc6cf1 (patch) | |
| tree | e5c5c568a2c0c4457aca22efc5349a7a5b792889 /include/linux | |
| parent | io_uring: ensure iopoll runs local task work as well (diff) | |
| download | linux-dev-de97fcb30316410a2c46be102f074a454ecc6cf1.tar.xz linux-dev-de97fcb30316410a2c46be102f074a454ecc6cf1.zip | |
fs: add batch and poll flags to the uring_cmd_iopoll() handler
We need the poll_flags to know how to poll for the IO, and we should
have the batch structure in preparation for supporting batched
completions with iopoll.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/fs.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index d6badd19784f..01681d061a6a 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -2132,7 +2132,8 @@ struct file_operations { loff_t len, unsigned int remap_flags); int (*fadvise)(struct file *, loff_t, loff_t, int); int (*uring_cmd)(struct io_uring_cmd *ioucmd, unsigned int issue_flags); - int (*uring_cmd_iopoll)(struct io_uring_cmd *ioucmd); + int (*uring_cmd_iopoll)(struct io_uring_cmd *, struct io_comp_batch *, + unsigned int poll_flags); } __randomize_layout; struct inode_operations { |
