summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2015-02-13 22:39:08 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-14 05:21:40 (GMT)
commit4d5755b147665912c938504033d958f1115b68ff (patch)
tree61d7a0fb45a279b10439caaa323373ba6f5729a0 /net
parent0f3c5aab5e00527eb3167aa9d1725cca9320e01e (diff)
downloadlinux-4d5755b147665912c938504033d958f1115b68ff.tar.xz
epoll: optimize setting task running after blocking
After waking up a task waiting for an event, we explicitly mark it as TASK_RUNNING (which is necessary as we do the checks for wakeups as TASK_INTERRUPTIBLE). Once running and dealing with actually delivering the events, we're obviously not planning on calling schedule, thus we can relax the implied barrier and simply update the state with __set_current_state(). Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Cc: Alexander 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 'net')
0 files changed, 0 insertions, 0 deletions