diff options
| author | Pavel Begunkov <asml.silence@gmail.com> | 2025-03-07 16:00:29 +0000 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2025-03-07 09:07:29 -0700 |
| commit | e1d499590977a492ae120d9263bd55076aabd460 (patch) | |
| tree | 11d97d8462945c701fc09aeb98ced7a340cbb41b /io_uring/rw.h | |
| parent | 6e3da40ed6f3508dcf34b1539496bcccef7015ef (diff) | |
| download | linux-e1d499590977a492ae120d9263bd55076aabd460.tar.gz linux-e1d499590977a492ae120d9263bd55076aabd460.tar.bz2 linux-e1d499590977a492ae120d9263bd55076aabd460.zip | |
io_uring: introduce struct iou_vec
I need a convenient way to pass around and work with iovec+size pair,
put them into a structure and makes use of it in rw.c
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/d39fadafc9e9047b0a292e5be6db3cf2f48bb1f7.1741362889.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rw.h')
| -rw-r--r-- | io_uring/rw.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/rw.h b/io_uring/rw.h index bf121b81ebe8..529fd2f96a7f 100644 --- a/io_uring/rw.h +++ b/io_uring/rw.h @@ -9,13 +9,13 @@ struct io_meta_state { }; struct io_async_rw { + struct iou_vec vec; size_t bytes_done; - struct iovec *free_iovec; + struct_group(clear, struct iov_iter iter; struct iov_iter_state iter_state; struct iovec fast_iov; - int free_iov_nr; /* * wpq is for buffered io, while meta fields are used with * direct io |
