Files
linux/io_uring
Ming Lei 6f1cbf6d6f io_uring: fix buffer auto-commit for multishot uring_cmd
Commit 620a50c927 ("io_uring: uring_cmd: add multishot support") added
multishot uring_cmd support with explicit buffer upfront commit via
io_uring_mshot_cmd_post_cqe(). However, the buffer selection path in
io_ring_buffer_select() was auto-committing buffers for non-pollable files,
which conflicts with uring_cmd's explicit upfront commit model.

This way consumes the whole selected buffer immediately, and causes
failure on the following buffer selection.

Fix this by checking uring_cmd to identify operations that handle buffer
commit explicitly, and skip auto-commit for these operations.

Cc: Caleb Sander Mateos <csander@purestorage.com>
Fixes: 620a50c927 ("io_uring: uring_cmd: add multishot support")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2025-10-23 19:41:31 -06:00
..
2025-01-28 15:10:40 -07:00
2025-09-08 08:06:37 -06:00
2025-02-17 16:43:04 -08:00
2025-10-22 10:56:11 -06:00
2025-03-07 13:41:08 -07:00
2022-07-24 18:39:11 -06:00
2025-06-23 09:00:12 -06:00
2025-09-19 07:06:43 -06:00
2025-09-08 08:06:37 -06:00
2025-07-16 16:23:28 -06:00
2024-02-09 09:04:39 -07:00