On Tue, Jan 10, 2017 at 9:35 AM, Cong Wang <xiyou.wangc...@gmail.com> wrote: > On Mon, Jan 9, 2017 at 9:20 AM, Andrey Konovalov <andreyk...@google.com> > wrote: > > The fix should be straight-forward. Mind to try the attached patch?
You forgot to remove schedule() ? schedule(); + wait_woken(&wait, TASK_INTERRUPTIBLE, MAX_SCHEDULE_TIMEOUT);