wait: don't use __wake_up_common()
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 14 Apr 2009 14:53:05 +0000 (16:53 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 14 Apr 2009 15:17:16 +0000 (17:17 +0200)
commit78ddb08feb7d4fbe3c0a9931804c51ee58be4023
tree3cd3485561a9ac036003fd4da41fdc485cd5ac71
parente790fb0ba64bfec158e1219d899cb588275d12ab
wait: don't use __wake_up_common()

'777c6c5 wait: prevent exclusive waiter starvation' made
__wake_up_common() global to be used from abort_exclusive_wait().

It was needed to do a wake-up with the waitqueue lock held while
passing down a key to the wake-up function.

Since '4ede816 epoll keyed wakeups: add __wake_up_locked_key() and
__wake_up_sync_key()' there is an appropriate wrapper for this case:
__wake_up_locked_key().

Use it here and make __wake_up_common() private to the scheduler
again.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1239720785-19661-1-git-send-email-hannes@cmpxchg.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/wait.h
kernel/sched.c
kernel/wait.c