From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f199.google.com (mail-wr0-f199.google.com [209.85.128.199]) by kanga.kvack.org (Postfix) with ESMTP id 3066D6B025F for ; Wed, 16 Aug 2017 07:17:36 -0400 (EDT) Received: by mail-wr0-f199.google.com with SMTP id m19so4872144wrb.6 for ; Wed, 16 Aug 2017 04:17:36 -0700 (PDT) Received: from mx1.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id m125si679337wmd.215.2017.08.16.04.17.34 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 16 Aug 2017 04:17:34 -0700 (PDT) Date: Wed, 16 Aug 2017 13:17:32 +0200 From: Michal Hocko Subject: Re: [PATCH][RFC] PM / Hibernate: Feed NMI wathdog when creating snapshot Message-ID: <20170816111731.GA32161@dhcp22.suse.cz> References: <1502731156-24903-1-git-send-email-yu.c.chen@intel.com> <20170815124119.GG29067@dhcp22.suse.cz> <20170815160107.GA2541@yu-desktop-1.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170815160107.GA2541@yu-desktop-1.sh.intel.com> Sender: owner-linux-mm@kvack.org List-ID: To: Chen Yu Cc: linux-mm@kvack.org, linux-pm@vger.kernel.org, Andrew Morton , Vlastimil Babka , Mel Gorman , linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Dan Williams On Wed 16-08-17 00:01:08, Chen Yu wrote: > Hi Michal, > On Tue, Aug 15, 2017 at 02:41:19PM +0200, Michal Hocko wrote: [...] > > Moreover why don't you need to touch_nmi_watchdog in the loop over all > > pfns in the zone (right above this loop)? > As the NMI was triggered when checking the free_list rather than in the loop over > all pfns, it seems that the former has more possibility to catch a NMI if the > latter has already taken too much time. But yes, a safer way is to feed dog > in the latter too. I'll modify the code according to your suggestion. This is a wrong approach IMHO. The whole thing has IRQ disabled. -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org