diff options
author | 2019-01-03 15:27:26 -0800 | |
---|---|---|
committer | 2019-01-04 13:13:46 -0800 | |
commit | 86c051793b4c941ee4481725d57cf2a27f6b3aaf (patch) | |
tree | f971e2b0f3dd64fd2fb6f46707c10cdf549de09d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fs/epoll: rename check_events label to send_events (diff) | |
download | wireguard-linux-86c051793b4c941ee4481725d57cf2a27f6b3aaf.tar.xz wireguard-linux-86c051793b4c941ee4481725d57cf2a27f6b3aaf.zip |
fs/epoll: deal with wait_queue only once
There is no reason why we rearm the waitiqueue upon every fetch_events
retry (for when events are found yet send_events() fails). If nothing
else, this saves four lock operations per retry, and furthermore reduces
the scope of the lock even further.
[akpm@linux-foundation.org: restore code to original position, fix and reflow comment]
Link: http://lkml.kernel.org/r/20181114182532.27981-2-dave@stgolabs.net
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Cc: Jason Baron <jbaron@akamai.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
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