linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@suse.com>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: linux-mm@kvack.org
Subject: Re: [PATCH] mm, oom_reaper: Move oom_lock from __oom_reap_task_mm() to oom_reap_task().
Date: Thu, 22 Dec 2016 10:35:01 +0100	[thread overview]
Message-ID: <20161222093501.GE6048@dhcp22.suse.cz> (raw)
In-Reply-To: <20161212115918.GI18163@dhcp22.suse.cz>

On Mon 12-12-16 12:59:18, Michal Hocko wrote:
> On Mon 12-12-16 19:55:52, Tetsuo Handa wrote:
> > Since commit 862e3073b3eed13f
> > ("mm, oom: get rid of signal_struct::oom_victims")
> > changed to wait until MMF_OOM_SKIP is set rather than wait while
> > TIF_MEMDIE is set, rationale comment for commit e2fe14564d3316d1
> > ("oom_reaper: close race with exiting task") needs to be updated.
> 
> True.
> 
> > While holding oom_lock can make sure that other threads waiting for
> > oom_lock at __alloc_pages_may_oom() are given a chance to call
> > get_page_from_freelist() after the OOM reaper called unmap_page_range()
> > via __oom_reap_task_mm(), it can defer calling of __oom_reap_task_mm().
> > 
> > Therefore, this patch moves oom_lock from __oom_reap_task_mm() to
> > oom_reap_task() (without any functional change). By doing so, the OOM
> > killer can call __oom_reap_task_mm() if we don't want to defer calling
> > of __oom_reap_task_mm() (e.g. when oom_evaluate_task() aborted by
> > finding existing OOM victim's mm without MMF_OOM_SKIP).
> 
> But I fail to understand this part of the changelog. It sounds like a
> preparatory for other changes. There doesn't seem to be any other user
> of __oom_reap_task_mm in the current tree.
> 
> Please send a patch which removes the comment which is no longer true
> on its own and feel free to add
> 
> Acked-by: Michal Hocko <mhocko@suse.com>
> 
> but do not make other changes if you do not have any follow up patch
> which would benefit from that.

Do you plan to pursue 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>

  reply	other threads:[~2016-12-22  9:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-12 10:55 Tetsuo Handa
2016-12-12 11:59 ` Michal Hocko
2016-12-22  9:35   ` Michal Hocko [this message]
2016-12-22 10:41     ` [PATCH] mm, oom_reaper: Move oom_lock from __oom_reap_task_mm()to oom_reap_task() Tetsuo Handa
2016-12-22 11:50       ` Michal Hocko

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=20161222093501.GE6048@dhcp22.suse.cz \
    --to=mhocko@suse.com \
    --cc=linux-mm@kvack.org \
    --cc=penguin-kernel@I-love.SAKURA.ne.jp \
    /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