aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorMing Lei <[email protected]>2025-10-24 01:34:59 +0000
committerJens Axboe <[email protected]>2025-10-24 01:41:31 +0000
commit6f1cbf6d6fd13fc169dde14e865897924cdc4bbd (patch)
treeec8fce3e6e953c29ef763f2d3a2e5e603c240973 /net/unix/af_unix.c
parentio_uring: correct __must_hold annotation in io_install_fixed_file (diff)
downloadkernel-6f1cbf6d6fd13fc169dde14e865897924cdc4bbd.tar.gz
kernel-6f1cbf6d6fd13fc169dde14e865897924cdc4bbd.zip
io_uring: fix buffer auto-commit for multishot uring_cmd
Commit 620a50c92700 ("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 <[email protected]> Fixes: 620a50c92700 ("io_uring: uring_cmd: add multishot support") Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions