]> Git Repo - linux.git/commit
fs/epoll: deal with wait_queue only once
authorDavidlohr Bueso <[email protected]>
Thu, 3 Jan 2019 23:27:26 +0000 (15:27 -0800)
committerLinus Torvalds <[email protected]>
Fri, 4 Jan 2019 21:13:46 +0000 (13:13 -0800)
commit86c051793b4c941ee4481725d57cf2a27f6b3aaf
treef971e2b0f3dd64fd2fb6f46707c10cdf549de09d
parent35cff1a6e0236500584a8ae227fe08120d9b5ee2
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.

[[email protected]: restore code to original position, fix and reflow comment]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Davidlohr Bueso <[email protected]>
Cc: Jason Baron <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/eventpoll.c
This page took 0.058565 seconds and 4 git commands to generate.