From: Laurent Dufour <ldufour@linux.vnet.ibm.com>
To: Michal Hocko <mhocko@kernel.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>,
Vladimir Davydov <vdavydov.dev@gmail.com>,
cgroups@vger.kernel.org, linux-mm@kvack.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] mm/cgroup: delay soft limit data allocation
Date: Wed, 22 Feb 2017 18:50:19 +0100 [thread overview]
Message-ID: <3b8d0a31-d869-4564-0e03-ac621af43ce7@linux.vnet.ibm.com> (raw)
In-Reply-To: <20170222171132.GB26472@dhcp22.suse.cz>
On 22/02/2017 18:11, Michal Hocko wrote:
> On Wed 22-02-17 16:58:11, Laurent Dufour wrote:
> [...]
>> static struct mem_cgroup_tree_per_node *
>> soft_limit_tree_node(int nid)
>> {
>> @@ -465,6 +497,8 @@ static void mem_cgroup_update_tree(struct mem_cgroup *memcg, struct page *page)
>> struct mem_cgroup_tree_per_node *mctz;
>>
>> mctz = soft_limit_tree_from_page(page);
>> + if (!mctz)
>> + return;
>> /*
>> * Necessary to update all ancestors when hierarchy is used.
>> * because their event counter is not touched.
>> @@ -502,7 +536,8 @@ static void mem_cgroup_remove_from_trees(struct mem_cgroup *memcg)
>> for_each_node(nid) {
>> mz = mem_cgroup_nodeinfo(memcg, nid);
>> mctz = soft_limit_tree_node(nid);
>> - mem_cgroup_remove_exceeded(mz, mctz);
>> + if (mctz)
>> + mem_cgroup_remove_exceeded(mz, mctz);
>> }
>> }
>>
>
> this belongs to the previous patch, right?
It may. I made the first patch fixing the panic I saw but if you prefer
this to be part of the first one, fair enough.
Tell me what you like.
--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2017-02-22 17:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-22 15:58 [PATCH 0/2] mm/cgroup soft limit data allocation Laurent Dufour
2017-02-22 15:58 ` [PATCH 1/2] mm/cgroup: avoid panic when init with low memory Laurent Dufour
2017-02-23 1:12 ` Balbir Singh
2017-02-22 15:58 ` [PATCH 2/2] mm/cgroup: delay soft limit data allocation Laurent Dufour
2017-02-22 17:11 ` Michal Hocko
2017-02-22 17:50 ` Laurent Dufour [this message]
2017-02-22 18:24 ` Michal Hocko
2017-02-23 8:59 ` Laurent Dufour
2017-02-23 1:16 ` Balbir Singh
2017-02-23 9:15 ` Laurent Dufour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3b8d0a31-d869-4564-0e03-ac621af43ce7@linux.vnet.ibm.com \
--to=ldufour@linux.vnet.ibm.com \
--cc=cgroups@vger.kernel.org \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
--cc=vdavydov.dev@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).