public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
From: "Theodore Ts'o" <tytso@mit.edu>
To: Eryu Guan <guaneryu@gmail.com>
Cc: Yang Xu <xuyang2018.jy@cn.fujitsu.com>, fstests@vger.kernel.org
Subject: Re: [PATCH] ext4/046: skip test when ext4 doesn't support bs < ps with dioread_nolock
Date: Mon, 18 Jan 2021 22:48:15 -0500	[thread overview]
Message-ID: <YAZWfy6tYIXyiQ33@mit.edu> (raw)
In-Reply-To: <20210117150624.GA2347@desktop>

On Sun, Jan 17, 2021 at 11:06:24PM +0800, Eryu Guan wrote:
> On Thu, Jan 14, 2021 at 11:55:03AM +0800, Yang Xu wrote:
> > When testing arm machine, this case fails because ps > bs and kernel doesn't
> > introduced commit c8cc88163f40 ("ext4: Add support for blocksize < pagesize in dioread_nolock").
> > Only skip this case when mounting failed.
> 
> Perhaps it's the kernel that should be fixed? i.e. backport the
> mentioned patch? Depends on if we treat it as a bug or a feature I
> think..

The dioread_nolock was introduced about ten years, and originally it
was an optimization that only worked when page size == block size.  A
little over a year ago (October 2019, in v5.5) this was relaxed so
that the dioread_nolock mount option would be accepted when the block
size < page size.

ARM's page size can be 4k, 64k, or 1MB.  At least on most ARM platform
that I've worked with (which are mobile handsets, admittedly) then
page size is 4k, and the default block size for ext4 file systems
created by ext4 is 4k.  You *can* ask mke2fs to create a 64k block
size, and in theory it should work, but I don't have access to any
platforms with 64k block sizes, so 64k support has a tendency to
regress.  We did fix some issues the last time someone tried to use an
ext4 file system with a 64k block sizes on an Itanium system, but that
was a couple of years ago.

As far as backporting dioread_nolock support to older kernels, it
requires a large restructuring of ext4 code to support it.  It's not
something that won't be acceptable for upstream LTS kernels.  I'm
assuming the issue here is that Fujitsu is trying to use some RHEL or
SLES kernel on a server-class ARM system with a 64k page size?

> At least we should check if it's really the bs < ps case before _notrun
> the test, otherwise we may fail to find dioread_nolock mount regression.

I'd tend to agree, but at least for ext4 upstream development, I run
the the full set of -g auto tests with dioread_nolock.  So if there a
dioread_nolock mount regression, I'd certainly notice.

	       	     		     	       - Ted

  parent reply	other threads:[~2021-01-19  3:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-14  3:55 [PATCH] ext4/046: skip test when ext4 doesn't support bs < ps with dioread_nolock Yang Xu
2021-01-17 15:06 ` Eryu Guan
2021-01-19  3:00   ` Yang Xu
2021-01-19  3:48   ` Theodore Ts'o [this message]
2021-01-19  6:13   ` [PATCH v2] " Yang Xu

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=YAZWfy6tYIXyiQ33@mit.edu \
    --to=tytso@mit.edu \
    --cc=fstests@vger.kernel.org \
    --cc=guaneryu@gmail.com \
    --cc=xuyang2018.jy@cn.fujitsu.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