From: Michal Hocko <mhocko@kernel.org>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: hannes@cmpxchg.org, vdavydov@virtuozzo.com, linux-mm@kvack.org
Subject: Re: [PATCH] mm: memcontrol: drop unnecessary task_will_free_mem() check.
Date: Wed, 9 Mar 2016 11:08:14 +0100 [thread overview]
Message-ID: <20160309100814.GC27018@dhcp22.suse.cz> (raw)
In-Reply-To: <201603090805.FGE48462.tFJSLMOFHVOOQF@I-love.SAKURA.ne.jp>
On Wed 09-03-16 08:05:11, Tetsuo Handa wrote:
[...]
> Also, what is the reason we do not need below change?
> I think there is a small race window because oom_killer_disabled needs to be
> checked after oom_killer_disable() held oom_lock. Is it because all userspace
> processes except current are frozen before oom_killer_disable() is called and
> not-yet frozen threads (i.e. kernel threads) never call mem_cgroup_out_of_memory() ?
Please refer to c32b3cbe0d06 ("oom, PM: make OOM detection in the
freezer path raceless"). It should explain this.
--
Michal Hocko
SUSE Labs
--
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:[~2016-03-09 10:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-08 15:15 [PATCH] mm: memcontrol: drop unnecessary task_will_free_mem() check Tetsuo Handa
2016-03-08 18:14 ` Johannes Weiner
2016-03-08 23:05 ` Tetsuo Handa
2016-03-09 10:08 ` Michal Hocko [this message]
2016-03-09 10:08 ` Michal Hocko
2016-03-09 10:05 ` Michal Hocko
2016-03-10 11:15 ` Tetsuo Handa
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=20160309100814.GC27018@dhcp22.suse.cz \
--to=mhocko@kernel.org \
--cc=hannes@cmpxchg.org \
--cc=linux-mm@kvack.org \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
--cc=vdavydov@virtuozzo.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).