Please sign in to comment.
thp: reduce khugepaged freezing latency
khugepaged can sometimes cause suspend to fail, requiring that the user retry the suspend operation. Use wait_event_freezable_timeout() instead of schedule_timeout_interruptible() to avoid missing freezer wakeups. A try_to_freeze() would have been needed in the khugepaged_alloc_hugepage tight loop too in case of the allocation failing repeatedly, and wait_event_freezable_timeout will provide it too. khugepaged would still freeze just fine by trying again the next minute but it's better if it freezes immediately. Reported-by: Jiri Slaby <firstname.lastname@example.org> Signed-off-by: Andrea Arcangeli <email@example.com> Tested-by: Jiri Slaby <firstname.lastname@example.org> Cc: Tejun Heo <email@example.com> Cc: Oleg Nesterov <firstname.lastname@example.org> Cc: "Srivatsa S. Bhat" <email@example.com> Cc: "Rafael J. Wysocki" <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
- Loading branch information...