]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
sched/wait: Add might_sleep() checks
authorPeter Zijlstra <peterz@infradead.org>
Wed, 24 Sep 2014 08:18:48 +0000 (10:18 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 28 Oct 2014 09:55:23 +0000 (10:55 +0100)
commite22b886a8a43b147e1994a9f970f678fc0df2033
tree72ec37c3bc73f1e2e50bd52d153a7a364d09c3b6
parent61ada528dea028331e99e8ceaed87c683ad25de2
sched/wait: Add might_sleep() checks

Add more might_sleep() checks, suppose someone put a wait_event() like
thing in a wait loop..

Can't put might_sleep() in ___wait_event() because there's the locked
primitives which call ___wait_event() with locks held.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: tglx@linutronix.de
Cc: ilya.dryomov@inktank.com
Cc: umgwanakikbuti@gmail.com
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20140924082242.119255706@infradead.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/wait.h