]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
io_uring/fdinfo: fix SQE_MIXED SQE displaying
authorJens Axboe <axboe@kernel.dk>
Thu, 26 Mar 2026 13:02:53 +0000 (07:02 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 26 Mar 2026 13:15:55 +0000 (07:15 -0600)
commitb59efde9e6c122207c16169d3d0deb623956eae9
treefbb716ef54b76adcd689a7827f3c0aedc6b907f1
parent418eab7a6f3c002d8e64d6e95ec27118017019af
io_uring/fdinfo: fix SQE_MIXED SQE displaying

When displaying pending SQEs for a MIXED ring, each 128-byte SQE
increments sq_head to skip the second slot, but the loop counter is not
adjusted. This can cause the loop to read past sq_tail by one entry for
each 128-byte SQE encountered, displaying SQEs that haven't been made
consumable yet by the application.

Match the kernel's own consumption logic in io_init_req() which
decrements what's left when consuming the extra slot.

Fixes: 1cba30bf9fdd ("io_uring: add support for IORING_SETUP_SQE_MIXED")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/fdinfo.c