Message ID | 20200817143735.862375022@linuxfoundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=hL0W=B3=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AC5E813A4 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 17 Aug 2020 16:12:32 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 77B3F20829 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 17 Aug 2020 16:12:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="wUc0owyI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 77B3F20829 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id BC40D8D0005; Mon, 17 Aug 2020 12:12:31 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id B98548D0002; Mon, 17 Aug 2020 12:12:31 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AD5CE8D0005; Mon, 17 Aug 2020 12:12:31 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0215.hostedemail.com [216.40.44.215]) by kanga.kvack.org (Postfix) with ESMTP id 9812D8D0002 for <linux-mm@kvack.org>; Mon, 17 Aug 2020 12:12:31 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 59742181AEF30 for <linux-mm@kvack.org>; Mon, 17 Aug 2020 16:12:31 +0000 (UTC) X-FDA: 77160553302.11.side74_0a064fd27018 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin11.hostedemail.com (Postfix) with ESMTP id 0F727180F8B8B for <linux-mm@kvack.org>; Mon, 17 Aug 2020 16:12:31 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,gregkh@linuxfoundation.org,,RULES_HIT:30012:30029:30045:30054:30056:30075,0,RBL:198.145.29.99:@linuxfoundation.org:.lbl8.mailshell.net-62.18.0.100 64.10.201.10;04yganruxbe1zm4nnrph6fwmrr7dbyp18wy5tgwtwrixop9wx9s5meyqumqr9cm.osqarcq8thwebahehuhmweza5q4k7ckmwqpastqnfc6chadftkw5kekiwk4axwt.a-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:24,LUA_SUMMARY:none X-HE-Tag: side74_0a064fd27018 X-Filterd-Recvd-Size: 4779 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf10.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Mon, 17 Aug 2020 16:12:30 +0000 (UTC) Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2754720578; Mon, 17 Aug 2020 16:12:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597680749; bh=9+jpxWmm+JY2bsa2wgO20vm/m75djbQE4CP1gmOtCUI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wUc0owyIvM0q15UyzGA8C1o9JZX+vRrNIICNt8Ltyx2TKujZrAbfsZTJSZqcWOfg0 4l8gdz+dMYkHmg4dxGK3mgHVlqx6o7HtssLJcf2T/xT7gOZDOVW/R0B4wm0FNZ16wV mJl6+ON2TdAQrDlLuS0oVODjui/yTtSbjLW/84LY= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org, Shakeel Butt <shakeelb@google.com>, "Joel Fernandes (Google)" <joel@joelfernandes.org>, "Paul E. McKenney" <paulmck@kernel.org>, Sasha Levin <sashal@kernel.org> Subject: [PATCH 4.19 042/168] mm/mmap.c: Add cond_resched() for exit_mmap() CPU stalls Date: Mon, 17 Aug 2020 17:16:13 +0200 Message-Id: <20200817143735.862375022@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143733.692105228@linuxfoundation.org> References: <20200817143733.692105228@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Rspamd-Queue-Id: 0F727180F8B8B X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam01 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
None
|
expand
|
diff --git a/mm/mmap.c b/mm/mmap.c index a98f09b830197..e84fd3347a518 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -3100,6 +3100,7 @@ void exit_mmap(struct mm_struct *mm) if (vma->vm_flags & VM_ACCOUNT) nr_accounted += vma_pages(vma); vma = remove_vma(vma); + cond_resched(); } vm_unacct_memory(nr_accounted); }