Re: [PATCH][RFC v2] PM / Hibernate: Disable wathdog when creating snapshot

2017-08-16 Thread Chen Yu
On Wed, Aug 16, 2017 at 02:33:59PM +0200, Michal Hocko wrote: > On Wed 16-08-17 12:53:38, Chen Yu wrote: > [...] > > @@ -2537,10 +2538,15 @@ void mark_free_pages(struct zone *zone) > > unsigned long flags; > > unsigned int order, t; > > struct page *page; > > + bool wd_suspended; > >

Re: [PATCH][RFC v2] PM / Hibernate: Disable wathdog when creating snapshot

2017-08-16 Thread Michal Hocko
On Wed 16-08-17 12:53:38, Chen Yu wrote: [...] > @@ -2537,10 +2538,15 @@ void mark_free_pages(struct zone *zone) > unsigned long flags; > unsigned int order, t; > struct page *page; > + bool wd_suspended; > > if (zone_is_empty(zone)) > return; > > +

[PATCH][RFC v2] PM / Hibernate: Disable wathdog when creating snapshot

2017-08-15 Thread Chen Yu
There is a problem that when counting the pages for creating the hibernation snapshot will take significant amount of time, especially on system with large memory. Since the counting job is performed with irq disabled, this might lead to NMI lockup. The following warning were found on a system with