module: Replace over-engineered nested sleep
authorPeter Zijlstra <peterz@infradead.org>
Wed, 11 Feb 2015 04:31:13 +0000 (15:01 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 11 Feb 2015 04:32:04 +0000 (15:02 +1030)
commit9cc019b8c94fa59e02fd82f15f7b7d689e35c190
tree0d6775b29012dd6a2df95cb16bd190faffd44780
parentd64810f56147b53e92228c31442e925576314aa2
module: Replace over-engineered nested sleep

Since the introduction of the nested sleep warning; we've established
that the occasional sleep inside a wait_event() is fine.

wait_event() loops are invariant wrt. spurious wakeups, and the
occasional sleep has a similar effect on them. As long as its occasional
its harmless.

Therefore replace the 'correct' but verbose wait_woken() thing with
a simple annotation to shut up the warning.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c