sched/wait: fix ___wait_var_event(exclusive)
authorOleg Nesterov <oleg@redhat.com>
Tue, 10 Dec 2019 19:19:03 +0000 (20:19 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 17 Dec 2019 12:32:50 +0000 (13:32 +0100)
commitcde65194502778665c1b52afc5722cf7dbfaa399
treec971da2409f6463d457c5b923e2016b79f83bcfb
parent5443a0be6121d557e12951537e10159e4c61035d
sched/wait: fix ___wait_var_event(exclusive)

init_wait_var_entry() forgets to initialize wq_entry->flags.

Currently not a problem, we don't have wait_var_event_exclusive().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Vincent Guittot <vincent.guittot@linaro.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Felipe Balbi <balbi@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Miklos Szeredi <miklos@szeredi.hu>
Cc: Juri Lelli <juri.lelli@redhat.com>
Link: https://lkml.kernel.org/r/20191210191902.GB14449@redhat.com
kernel/sched/wait_bit.c