Message ID | 20170419074530.GA29789@dhcp22.suse.cz (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 5fca73c7881a..a9a1ab7ea4c9 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -2417,6 +2417,14 @@ void drain_all_pages(struct zone *zone) static cpumask_t cpus_with_pcps; /* + * This is an uggly hack but let's back off in the early PM suspend/resume + * paths because the whole infrastructure might not be available yet for + * us - namely kworkers might be still frozen + */ + if (pm_suspended_storage()) + return; + + /* * Make sure nobody triggers this path before mm_percpu_wq is fully * initialized. */