Skip to content
Commit f75d1183 authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: harder fdinfo sq/cq ring iterating

The ring iteration is racy, which isn't necessarily a problem except it
can cause us to iterate the whole thing. That isn't desired or ideal,
and it can lead to excessive runtimes of reading fdinfo.

Cap the iteration at tail - head OR the ring size. While in there, clean
up the ring masking and just dump the raw values along with the masks.
That provides more useful debug info.

Fixes: 83f84356

 ("io_uring: add more uring info to fdinfo for debug")
Reported-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 3884b83d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment