diff options
| author | Jens Axboe <axboe@kernel.dk> | 2026-02-03 09:56:55 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-02-19 16:31:34 +0100 |
| commit | fa4938e0d0d64a5623629470eefb5547495e7aa6 (patch) | |
| tree | e04c8c4e4e9eee9956f4b04370621c464b3c666b /tools/perf/scripts/python/task-analyzer.py | |
| parent | cab928242853a832ffa7efda270ecfb9efeebb6e (diff) | |
io_uring/fdinfo: be a bit nicer when looping a lot of SQEs/CQEs
[ Upstream commit 38cfdd9dd279473a73814df9fd7e6e716951d361 ]
Add cond_resched() in those dump loops, just in case a lot of entries
are being dumped. And detect invalid CQ ring head/tail entries, to avoid
iterating more than what is necessary. Generally not an issue, but can be
if things like KASAN or other debugging metrics are enabled.
Reported-by: 是参差 <shicenci@gmail.com>
Link: https://lore.kernel.org/all/PS1PPF7E1D7501FE5631002D242DD89403FAB9BA@PS1PPF7E1D7501F.apcprd02.prod.outlook.com/
Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
