mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hugh Dickins <hugh@veritas.com>
To: Andrew Morton <akpm@osdl.org>
Cc: torvalds@osdl.org, ak@suse.de, holt@sgi.com, bcasavan@sgi.com,
	cr@sap.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] tmpfs: fix mount mpol nodelist parsing
Date: Wed, 22 Feb 2006 07:21:41 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.61.0602220658390.6196@goblin.wat.veritas.com> (raw)
In-Reply-To: <20060221183004.72ffa011.akpm@osdl.org>

On Tue, 21 Feb 2006, Andrew Morton wrote:
> Hugh Dickins <hugh@veritas.com> wrote:
> >
> > Move the mpol= parsing to shmem_parse_mpol under CONFIG_NUMA, reject
> >  all its options as invalid if not NUMA.
> 
> That's a bit irritating, really.  It means that userspace needs to be
> different for NUMA kernels (or more different, which is still bad).  Boot
> into a non-NUMA kernel and whoops, no tmpfs and quite possibly no boot.

Well spotted.

That was a choice that gave me pause between making it and sending the
patch.  But in the end I decided we might as well.  Repeating what I
wrote to Robin about it...

I did wonder for a while whether I'd been unhelpful to make mpol= fail
when not CONFIG_NUMA - tiresome for someone switching between NUMA and
non-NUMA kernels.  But this is an advanced option, not something for
everybody's /etc/fstab; and once I realized that all but the trivial
nodelist "0" would get rejected anyway if not CONFIG_NUMA, decided it
is best to placate the anti-bloaters with that CONFIG_NUMA after all.

> But last time I whined about this Albert had a list of fairly
> reasonable-sounding reasons why filesystems shouldn't silently accept
> not-understood options.
> 
> But in this case, we _do_ understand them.  We're just not going to do
> anything about them.
> 
> I just wonder if we're being as friendly as we possibly can be to admins
> and distro-makers.

I doubt the distro-makers will want to be putting "mpol=" options into
their tmpfs lines in /etc/fstab.  I hope the admins of such systems
that need it can cope.

But perhaps I should expand the mention of CONFIG_NUMA in tmpfs.txt,
to explain the issue, and suggest that "mpol=" be used in remounts
rather than automatic mounts on systems where it might be a problem.
I'll dream up some wording later.

> [ Vaguely suprised that tmpfs isn't using match_token()... ]

I did briefly consider that back in the days when I noticed a host of
fs filesystems got converted.  But didn't see any point in messing
with what was already working.  Haven't looked recently: would it
actually be a useful change to make?

Hugh

  reply	other threads:[~2006-02-22  7:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-21 23:49 Hugh Dickins
2006-02-21 23:51 ` Andi Kleen
2006-02-22  2:30 ` Andrew Morton
2006-02-22  7:21   ` Hugh Dickins [this message]
2006-02-22  7:41     ` Andrew Morton

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=Pine.LNX.4.61.0602220658390.6196@goblin.wat.veritas.com \
    --to=hugh@veritas.com \
    --cc=ak@suse.de \
    --cc=akpm@osdl.org \
    --cc=bcasavan@sgi.com \
    --cc=cr@sap.com \
    --cc=holt@sgi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.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

all inboxes | Powered by JetHome®