aboutsummaryrefslogtreecommitdiff
path: root/io_uring/rw.h
diff options
context:
space:
mode:
authorGravatar Jens Axboe <axboe@kernel.dk> 2024-03-18 16:25:58 -0600
committerGravatar Jens Axboe <axboe@kernel.dk> 2024-04-15 08:10:25 -0600
commit0d10bd77a1be0742a12e1bcf0554a4bcbdbc0f35 (patch)
treee2078da25cf020ca49d0e9748d39505e79ce0f01 /io_uring/rw.h
parentio_uring/rw: always setup io_async_rw for read/write requests (diff)
downloadlinux-0d10bd77a1be0742a12e1bcf0554a4bcbdbc0f35.tar.gz
linux-0d10bd77a1be0742a12e1bcf0554a4bcbdbc0f35.tar.bz2
linux-0d10bd77a1be0742a12e1bcf0554a4bcbdbc0f35.zip
io_uring: get rid of struct io_rw_state
A separate state struct is not needed anymore, just fold it in with io_async_rw. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/rw.h')
-rw-r--r--io_uring/rw.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/io_uring/rw.h b/io_uring/rw.h
index f7905070d10b..7824896dc52d 100644
--- a/io_uring/rw.h
+++ b/io_uring/rw.h
@@ -2,18 +2,14 @@
#include <linux/pagemap.h>
-struct io_rw_state {
- struct iov_iter iter;
- struct iov_iter_state iter_state;
- struct iovec fast_iov[UIO_FASTIOV];
-};
-
struct io_async_rw {
union {
size_t bytes_done;
struct io_cache_entry cache;
};
- struct io_rw_state s;
+ struct iov_iter iter;
+ struct iov_iter_state iter_state;
+ struct iovec fast_iov[UIO_FASTIOV];
struct iovec *free_iovec;
struct wait_page_queue wpq;
};