diff options
author | Jens Axboe <axboe@kernel.dk> | 2021-10-29 06:36:45 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-10-29 09:49:33 -0600 |
commit | f75d118349be055d47407b4ba4ceb98e6437e472 (patch) | |
tree | a215817815a3f606191b6a73327df1f516bf9b0c /drivers/mmc | |
parent | 3884b83dff245e41def99ceacca8ed2056baf0a8 (diff) | |
download | lwn-f75d118349be055d47407b4ba4ceb98e6437e472.tar.gz lwn-f75d118349be055d47407b4ba4ceb98e6437e472.zip |
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: 83f84356bc8f ("io_uring: add more uring info to fdinfo for debug")
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/mmc')
0 files changed, 0 insertions, 0 deletions