Message ID | cbe54ed1-b6ba-a056-8899-2dc42526371d@i-love.sakura.ne.jp (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6F54C14E5 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 6 Aug 2019 12:48:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 576D3288DA for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 6 Aug 2019 12:48:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 495F92892B; Tue, 6 Aug 2019 12:48:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B32B28925 for <patchwork-linux-mm@patchwork.kernel.org>; Tue, 6 Aug 2019 12:48:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 27F116B0005; Tue, 6 Aug 2019 08:48:36 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 230E86B0006; Tue, 6 Aug 2019 08:48:36 -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 0F72D6B0007; Tue, 6 Aug 2019 08:48:36 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) by kanga.kvack.org (Postfix) with ESMTP id D60A96B0005 for <linux-mm@kvack.org>; Tue, 6 Aug 2019 08:48:35 -0400 (EDT) Received: by mail-ot1-f70.google.com with SMTP id x18so49203418otp.9 for <linux-mm@kvack.org>; Tue, 06 Aug 2019 05:48:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:subject:to:cc :references:from:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=r+AYLnfKGfufrO8W6cq39b4l7nQ4liUYXfHMkw9/XLM=; b=fKOBhVbkqtJAStsbk+nXIGcH6r5ewHvZR3I1C4ICzHv2kMi7N3mVI4558AlRFea4BU GGmHgPfUOp6UXYqzI2NHYAgvikf82kI2xJ2BTpldzsMCKruNGnRUFS2fUpgatIrGXy5K wI500S+/ahV9d3TwjI7KsoEXBKqpHUbfUhw8ocXoNvji2EGyJF9Yod4yJw7Hk4Ayzy4t 4VM2uLQ6mf/6vDfrAlvebmowM8DigfomVCKK6Z75cz0oW2YDDgKLOr3FalXzN90J/dOw +VfEG89augdo7hz5GIKiEcU7YjHt0Bw1Ks5KWzPfLS4Jd0h6qML3UW7L74YLnRWzznnN xuFw== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of penguin-kernel@i-love.sakura.ne.jp designates 202.181.97.72 as permitted sender) smtp.mailfrom=penguin-kernel@i-love.sakura.ne.jp X-Gm-Message-State: APjAAAUPRFryMQ/yo/Y0Kg53uzHMKxza58U45UVb45qZ4XIEIHyil2JV UwHZqE1UodBDfcgkrJdDUSfTy4NbnhZvKwewS/pYwGxbdur8TMMIAjYrA+VtWOofpdamALLmksk G/h6YWaMKCCQHRgXsJqASjupFzcjJac+GF4gy01Pdf44rEkiQDPPuwHb9mPGUh+ziFA== X-Received: by 2002:a6b:8f0d:: with SMTP id r13mr3265957iod.121.1565095715460; Tue, 06 Aug 2019 05:48:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTq0eKMDRlR01j3w5+tPU9AeZMnO60NnhMFiPmhTXhIY9T/dGxd9rMnkzXkon32EHxSliA X-Received: by 2002:a6b:8f0d:: with SMTP id r13mr3265826iod.121.1565095713704; Tue, 06 Aug 2019 05:48:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565095713; cv=none; d=google.com; s=arc-20160816; b=CVEV1WdrMebJhGoS78zDQvEgxyIjOFaRVzO6Tmi+NUAMtmxu3l84eugJ7mfPLQnTXz pAHKp/p3yjKj8jqS3IsSWiqfygtLGVlMs075PCMUKUMRnrtvzA0zWL1JnAvzCGV+1dsd vBM7gd6GyOqotmCLL67quJ3nQY56B2r/cujggomRfTs86blfTPof4tKE/ifculTtdSsp Qoah7sKum+7B7idXRHZ7NigukZ9JhcXwKqICcV94b/QXuy1y4cVFfj/rcb4TMbnW2U0J 4uSPXtR9g1CoZsJQ+HAdamN4ZYpe5/xJ/v5wARm8KMrJaOfJnbt2zAcScB7AStXyA3fb WhYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=r+AYLnfKGfufrO8W6cq39b4l7nQ4liUYXfHMkw9/XLM=; b=z6gYqKZGs0O2Snh+1Fu6EX2c/kNwr3gAFD5pX0UUHJrfKOpOHoJk9NzotOWI06L2FU JeExil+9HjBep/8uEG5pMxPWJ5Zaudx4FmrO/tiHuXu1JsuTg1HUSd4pWQRIinyp2G9h hfuE3oAzGCkkXwuI8UpyA0x+LzU1EHi7F9kPgv1jHXfGP6tOYnq7lFjCnrt0xP5jh6Ck M89Pg4nudKQkH7a4Wcka2j2i0jYzUR+406DHelkf3aNz2F6aYOubabf4wtbCsFAzBNZU 2Y//Q4La6UMKjX2msOZE6fVIdmk9M6Um/hI+8C5f9dn1rdSv62idshwAjcSSe3cZBqd0 Lz7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of penguin-kernel@i-love.sakura.ne.jp designates 202.181.97.72 as permitted sender) smtp.mailfrom=penguin-kernel@i-love.sakura.ne.jp Received: from www262.sakura.ne.jp (www262.sakura.ne.jp. [202.181.97.72]) by mx.google.com with ESMTPS id k11si6500934ior.16.2019.08.06.05.48.33 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Aug 2019 05:48:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of penguin-kernel@i-love.sakura.ne.jp designates 202.181.97.72 as permitted sender) client-ip=202.181.97.72; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of penguin-kernel@i-love.sakura.ne.jp designates 202.181.97.72 as permitted sender) smtp.mailfrom=penguin-kernel@i-love.sakura.ne.jp Received: from fsav108.sakura.ne.jp (fsav108.sakura.ne.jp [27.133.134.235]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id x76CmKp6070017; Tue, 6 Aug 2019 21:48:20 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav108.sakura.ne.jp (F-Secure/fsigk_smtp/530/fsav108.sakura.ne.jp); Tue, 06 Aug 2019 21:48:20 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/530/fsav108.sakura.ne.jp) Received: from [192.168.1.8] (softbank126012062002.bbtec.net [126.12.62.2]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id x76CmFiB069797 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NO); Tue, 6 Aug 2019 21:48:20 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: [PATCH v3] memcg, oom: don't require __GFP_FS when invoking memcg OOM killer To: Michal Hocko <mhocko@kernel.org>, Andrew Morton <akpm@linux-foundation.org> Cc: Masoud Sharbiani <msharbiani@apple.com>, Greg KH <gregkh@linuxfoundation.org>, hannes@cmpxchg.org, vdavydov.dev@gmail.com, linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190802191430.GO6461@dhcp22.suse.cz> <A06C5313-B021-4ADA-9897-CE260A9011CC@apple.com> <f7733773-35bc-a1f6-652f-bca01ea90078@I-love.SAKURA.ne.jp> <d7efccf4-7f07-10da-077d-a58dafbf627e@I-love.SAKURA.ne.jp> <20190805084228.GB7597@dhcp22.suse.cz> <7e3c0399-c091-59cd-dbe6-ff53c7c8adc9@i-love.sakura.ne.jp> <20190805114434.GK7597@dhcp22.suse.cz> <0b817204-29f4-adfb-9b78-4fec5fa8f680@i-love.sakura.ne.jp> <20190805142622.GR7597@dhcp22.suse.cz> <56d98a71-b77e-0ad7-91ad-62633929c736@i-love.sakura.ne.jp> <20190806105004.GS11812@dhcp22.suse.cz> From: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> Message-ID: <cbe54ed1-b6ba-a056-8899-2dc42526371d@i-love.sakura.ne.jp> Date: Tue, 6 Aug 2019 21:48:11 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190806105004.GS11812@dhcp22.suse.cz> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
[v3] memcg, oom: don't require __GFP_FS when invoking memcg OOM killer
|
expand
|
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index eda2e2a..26804ab 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -1068,9 +1068,10 @@ bool out_of_memory(struct oom_control *oc) * The OOM killer does not compensate for IO-less reclaim. * pagefault_out_of_memory lost its gfp context so we have to * make sure exclude 0 mask - all other users should have at least - * ___GFP_DIRECT_RECLAIM to get here. + * ___GFP_DIRECT_RECLAIM to get here. But mem_cgroup_oom() has to + * invoke the OOM killer even if it is a GFP_NOFS allocation. */ - if (oc->gfp_mask && !(oc->gfp_mask & __GFP_FS)) + if (oc->gfp_mask && !(oc->gfp_mask & __GFP_FS) && !is_memcg_oom(oc)) return true; /*