linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@suse.com>
To: Gavin Shan <gshan@redhat.com>
Cc: linux-mm@kvack.org, aarcange@redhat.com, akpm@linux-foundation.org
Subject: Re: [PATCH 0/3] mm: Rework {enabled,defrag}_{show,store}
Date: Thu, 30 Jan 2020 08:49:01 +0100	[thread overview]
Message-ID: <20200130074901.GR24244@dhcp22.suse.cz> (raw)
In-Reply-To: <20200130022441.95488-1-gshan@redhat.com>

On Thu 30-01-20 13:24:38, Gavin Shan wrote:
> The inappropriate settings can be accepted by "enabled" and "defrag"
> interface, as the following example shows. This series reworks the
> related functions and fixes the issue by the way.

Do we really care? This is a root only interface and we do expect root
to know how to use the interface.

>    # cat /sys/kernel/mm/transparent_hugepage/enabled
>      always [madvise] never
>    # echo neveroff > /sys/kernel/mm/transparent_hugepage/enabled
>    # cat /sys/kernel/mm/transparent_hugepage/enabled
>      always madvise [never]
> 
> Gavin Shan (3):
>   mm: Rework {enabled,defrag}_store()
>   mm: Rework {enabled,defrag}_show()
>   mm: Rework setup_transparent_hugepage()
> 
>  mm/huge_memory.c | 216 +++++++++++++++++++++++++++--------------------
>  1 file changed, 125 insertions(+), 91 deletions(-)
> 
> -- 
> 2.23.0
> 

-- 
Michal Hocko
SUSE Labs


  reply	other threads:[~2020-01-30  7:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-30  2:24 Gavin Shan
2020-01-30  7:49 ` Michal Hocko [this message]
2020-01-30  9:46   ` Vlastimil Babka
2020-01-30 22:22     ` Gavin Shan
2020-01-30 22:12   ` Gavin Shan

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=20200130074901.GR24244@dhcp22.suse.cz \
    --to=mhocko@suse.com \
    --cc=aarcange@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=gshan@redhat.com \
    --cc=linux-mm@kvack.org \
    /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