Message ID | 20200820092129.076571262@linuxfoundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=Qtwz=B6=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 D0168722 for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 20 Aug 2020 10:20:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 9CA3F2173E for <patchwork-linux-mm@patchwork.kernel.org>; Thu, 20 Aug 2020 10:20:18 +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="I+C/v0X5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9CA3F2173E 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 BE7928D000C; Thu, 20 Aug 2020 06:20:17 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id B97C18D0001; Thu, 20 Aug 2020 06:20:17 -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 A86D28D000C; Thu, 20 Aug 2020 06:20:17 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0039.hostedemail.com [216.40.44.39]) by kanga.kvack.org (Postfix) with ESMTP id 8E6D08D0001 for <linux-mm@kvack.org>; Thu, 20 Aug 2020 06:20:17 -0400 (EDT) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 4827A8248047 for <linux-mm@kvack.org>; Thu, 20 Aug 2020 10:20:17 +0000 (UTC) X-FDA: 77170552074.11.paper81_4f0f19e2702f Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin11.hostedemail.com (Postfix) with ESMTP id CCECF180F8B81 for <linux-mm@kvack.org>; Thu, 20 Aug 2020 10:20:16 +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-64.10.201.10 62.18.0.100;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:linux-foundation.org-sh.dbl.urbl.hostedemail.com-127.0.0.175,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: paper81_4f0f19e2702f X-Filterd-Recvd-Size: 4778 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf48.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Thu, 20 Aug 2020 10:20:16 +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 DC5CF2067C; Thu, 20 Aug 2020 10:20:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597918815; bh=De2zk7qjFmsbhkJJUIbIDk8nhAWIFH4lcx20Cc9CYWk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=I+C/v0X57C5kxIoS4TT8c4mCYUijyQIskFCqEG04ihOujka7Wceq4C63IpierEoMe CQVlAcMuNIOGjTd2YmqGn3dRO1dRqBdkfb45xRcHYK55EFNtLE8RH42YJv54y8JLey 3OIxZgIivXWAsF0nS9PRgbU/+FJNaiMKZjr4jdHc= 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.4 069/149] mm/mmap.c: Add cond_resched() for exit_mmap() CPU stalls Date: Thu, 20 Aug 2020 11:22:26 +0200 Message-Id: <20200820092129.076571262@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820092125.688850368@linuxfoundation.org> References: <20200820092125.688850368@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Rspamd-Queue-Id: CCECF180F8B81 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam05 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 a24e424770012..135cccce41f88 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2954,6 +2954,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); }