Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DFBAC433ED for ; Mon, 12 Apr 2021 07:14:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 37E246120B for ; Mon, 12 Apr 2021 07:14:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231414AbhDLHPM (ORCPT ); Mon, 12 Apr 2021 03:15:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:34672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229581AbhDLHPM (ORCPT ); Mon, 12 Apr 2021 03:15:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5A2D2610CA; Mon, 12 Apr 2021 07:14:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618211694; bh=dH3Q6JUQHQmYdiiCS7K8POTE6TBa9uj5FsWxOsaxTe0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wsulJONndGpyokxy2s8CimxcJaqAgZJqcsZd4XdNwXl5VoVXxPGIGJJpgChyADU3+ 2XA8NCvWKiS3tPdsbwM3aklKtmzR7ZAWMFtab1VxqA81w7YTZMFtONFDVDcGKY8Q9s hl5v5tVy7bFwLB8CRt5J4qF6D/CpfHR+vANMeo0k= Date: Mon, 12 Apr 2021 09:14:52 +0200 From: Greg Kroah-Hartman To: Wen Yang Cc: Sasha Levin , stable , Hugh Dickins , Michal Hocko , David Rientjes , Gerald Schaefer , Andrew Morton , Linus Torvalds , Chen si , Baoyou Xie , Zijiang Huang Subject: Re: [RESEND PATCH 4.9] mm: add cond_resched() in gather_pte_stats() Message-ID: References: <20210412035857.82868-1-wenyang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210412035857.82868-1-wenyang@linux.alibaba.com> Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Mon, Apr 12, 2021 at 11:58:57AM +0800, Wen Yang wrote: > From: Hugh Dickins > > commit a66c0410b97c07a5708881198528ce724f7a3226 upstream. > > The other pagetable walks in task_mmu.c have a cond_resched() after > walking their ptes: add a cond_resched() in gather_pte_stats() too, for > reading /proc//numa_maps. Only pagemap_pmd_range() has a > cond_resched() in its (unusually expensive) pmd_trans_huge case: more > should probably be added, but leave them unchanged for now. > > Link: http://lkml.kernel.org/r/alpine.LSU.2.11.1612052157400.13021@eggly.anvils > Signed-off-by: Hugh Dickins > Acked-by: Michal Hocko > Cc: David Rientjes > Cc: Gerald Schaefer > Signed-off-by: Andrew Morton > Signed-off-by: Linus Torvalds > Cc: # 4.9.x > Reported-by: Chen si > Signed-off-by: Baoyou Xie > Signed-off-by: Wen Yang > Signed-off-by: Zijiang Huang > --- > fs/proc/task_mmu.c | 1 + > 1 file changed, 1 insertion(+) Now queued up, thanks. greg k-h