summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorHui Peng <benquike@gmail.com>2026-09-19 20:35:18 +0000
committerJens Axboe <axboe@kernel.dk>2026-09-21 10:50:07 -0600
commitab5853c068b1d654d7c4a535417ca3eb3e67403b (patch)
tree333726624c6f0b06bae908821e8e7b8940ec075d /tools/lib/python
parent2107751744287996a9bbcf40b5055a5b7fe30b5c (diff)
downloadlinux-next-ab5853c068b1d654d7c4a535417ca3eb3e67403b.tar.gz
linux-next-ab5853c068b1d654d7c4a535417ca3eb3e67403b.zip
io_uring: fix free entry check for 32b CQEs on CQE32 rings
On CQE32 rings, len is in units of 32b CQEs when io_cqe_cache_refill() checks for free entries, so requiring cqe32 + 1 of them means insisting on 2 free CQEs where 1 is enough, and a ring with a single free entry needlessly goes to overflow. Check for a free CQE directly in that case, and keep the cqe32 + 1 check for CQE_MIXED where the units are 16b. Fixes: e26dca67fde1 ("io_uring: add support for IORING_SETUP_CQE_MIXED") Assisted-by: LLM Signed-off-by: Hui Peng <benquike@gmail.com> Link: https://patch.msgid.link/20260919203516.2581409-1-benquike@gmail.com [axboe: split from Hui's original patch, edited commit message] Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions