diff options
author | Keith Busch <kbusch@kernel.org> | 2025-02-27 14:39:12 -0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-02-28 07:05:26 -0700 |
commit | ff92d824d0b55e35ed2ee77021cbd2ed3e7ae7a2 (patch) | |
tree | dcb2c8a187280f119af100fb20feccc3bb09ca3d /io_uring/opdef.c | |
parent | 2a61e63891add7817e35a2323347ed8d354acf84 (diff) |
io_uring/rw: move fixed buffer import to issue path
Registered buffers may depend on a linked command, which makes the prep
path too early to import. Move to the issue path when the node is
actually needed like all the other users of fixed buffers.
Signed-off-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20250227223916.143006-3-kbusch@meta.com
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/opdef.c')
-rw-r--r-- | io_uring/opdef.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/io_uring/opdef.c b/io_uring/opdef.c index e8baef4e5146..306fd9c48b44 100644 --- a/io_uring/opdef.c +++ b/io_uring/opdef.c @@ -104,7 +104,7 @@ const struct io_issue_def io_issue_defs[] = { .iopoll_queue = 1, .async_size = sizeof(struct io_async_rw), .prep = io_prep_read_fixed, - .issue = io_read, + .issue = io_read_fixed, }, [IORING_OP_WRITE_FIXED] = { .needs_file = 1, @@ -118,7 +118,7 @@ const struct io_issue_def io_issue_defs[] = { .iopoll_queue = 1, .async_size = sizeof(struct io_async_rw), .prep = io_prep_write_fixed, - .issue = io_write, + .issue = io_write_fixed, }, [IORING_OP_POLL_ADD] = { .needs_file = 1, |