From: Peter Zijlstra Date: Wed, 24 Sep 2014 08:18:47 +0000 (+0200) Subject: sched/wait: Provide infrastructure to deal with nested blocking X-Git-Tag: omap-for-v3.19/fixes-rc1~165^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61ada528dea028331e99e8ceaed87c683ad25de2;p=pandora-kernel.git 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) Reviewed-by: Oleg Nesterov Cc: tglx@linutronix.de Cc: ilya.dryomov@inktank.com Cc: umgwanakikbuti@gmail.com Cc: Linus Torvalds Link: http://lkml.kernel.org/r/20140924082242.051202318@infradead.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed