summaryrefslogtreecommitdiff
path: root/fs/smbfs_common
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-10-29 15:36:45 +0300
committerJens Axboe <axboe@kernel.dk>2021-10-29 18:49:33 +0300
commitf75d118349be055d47407b4ba4ceb98e6437e472 (patch)
treea215817815a3f606191b6a73327df1f516bf9b0c /fs/smbfs_common
parent3884b83dff245e41def99ceacca8ed2056baf0a8 (diff)
downloadlinux-f75d118349be055d47407b4ba4ceb98e6437e472.tar.xz
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 'fs/smbfs_common')
0 files changed, 0 insertions, 0 deletions