aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched.c')
-rw-r--r--kernel/sched.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 39aa9c7e22c0..b531d7934083 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -3983,8 +3983,7 @@ do_wait_for_common(struct completion *x, long timeout, int state)
3983 if (!x->done) { 3983 if (!x->done) {
3984 DECLARE_WAITQUEUE(wait, current); 3984 DECLARE_WAITQUEUE(wait, current);
3985 3985
3986 wait.flags |= WQ_FLAG_EXCLUSIVE; 3986 __add_wait_queue_tail_exclusive(&x->wait, &wait);
3987 __add_wait_queue_tail(&x->wait, &wait);
3988 do { 3987 do {
3989 if (signal_pending_state(state, current)) { 3988 if (signal_pending_state(state, current)) {
3990 timeout = -ERESTARTSYS; 3989 timeout = -ERESTARTSYS;