aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorPavel Begunkov <[email protected]>2021-04-13 02:58:45 +0100
committerJens Axboe <[email protected]>2021-04-13 09:37:55 -0600
commite9979b36a467dcdb2073ec8391a2c167971bee46 (patch)
treeab3eab8f8f49fcc2e9ddaf937c33015acb95b11e /tools/perf/scripts/python/net_dropmonitor.py
parentcce4b8b0ce1f9fdf67f4f73ed12a2da2a085d5e3 (diff)
io_uring: skip futile iopoll iterations
The only way to get out of io_iopoll_getevents() and continue iterating is to have empty iopoll_list, otherwise the main loop would just exit. So, instead of the unlock on 8th time heuristic, do that based on iopoll_list. Also, as no one can add new requests to iopoll_list while io_iopoll_check() hold uring_lock, it's useless to spin with the list empty, return in that case. Signed-off-by: Pavel Begunkov <[email protected]> Link: https://lore.kernel.org/r/5b8ebe84f5fff7ffa1f708952dfef7fc78b668e2.1618278933.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions