diff options
author | 2020-12-18 14:02:03 -0800 | |
---|---|---|
committer | 2020-12-19 11:18:38 -0800 | |
commit | 00b27634bc471e0198f93d48694171121af2e159 (patch) | |
tree | ea67bbb4f3ff5eff143c79603990dd7d6338f0a8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | epoll: pull all code between fetch_events and send_event into the loop (diff) | |
download | linux-dev-00b27634bc471e0198f93d48694171121af2e159.tar.xz linux-dev-00b27634bc471e0198f93d48694171121af2e159.zip |
epoll: replace gotos with a proper loop
The existing loop is pointless, and the labels make it really hard to
follow the structure.
Replace that control structure with a simple loop that returns when there
are new events, there is a signal, or the thread has timed out.
Link: https://lkml.kernel.org/r/20201106231635.3528496-8-soheil.kdev@gmail.com
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Khazhismel Kumykov <khazhy@google.com>
Cc: Guantao Liu <guantaol@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions