]> Git Repo - linux.git/commit - include/linux/wait.h
sched/wait: Provide infrastructure to deal with nested blocking
authorPeter Zijlstra <[email protected]>
Wed, 24 Sep 2014 08:18:47 +0000 (10:18 +0200)
committerIngo Molnar <[email protected]>
Tue, 28 Oct 2014 09:55:15 +0000 (10:55 +0100)
commit61ada528dea028331e99e8ceaed87c683ad25de2
tree0037fc75e3629576238dce932babf7738e80cb86
parent6f942a1f264e875c5f3ad6f505d7b500a3e7fa82
sched/wait: Provide infrastructure to deal with nested blocking

There are a few places that call blocking primitives from wait loops,
provide infrastructure to support this without the typical
task_struct::state collision.

We record the wakeup in wait_queue_t::flags which leaves
task_struct::state free to be used by others.

Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Oleg Nesterov <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Linus Torvalds <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
include/linux/wait.h
kernel/sched/wait.c
This page took 0.049707 seconds and 4 git commands to generate.