All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: Chandan Rajendra <chandan@linux.vnet.ibm.com>,
	Omar Sandoval <osandov@osandov.com>,
	Christoph Hellwig <hch@infradead.org>,
	linux-xfs@vger.kernel.org, sandeen@sandeen.net,
	Omar Sandoval <osandov@fb.com>,
	linux-block@vger.kernel.org
Subject: Re: [PATCH] mkfs: Remove messages printed when blocksize < physical sectorsize
Date: Wed, 6 Sep 2017 08:06:31 +1000	[thread overview]
Message-ID: <20170905220631.GL17782@dastard> (raw)
In-Reply-To: <89dbce28-5798-f404-4dc8-a85aae36cdec@kernel.dk>

On Tue, Sep 05, 2017 at 09:00:26AM -0600, Jens Axboe wrote:
> On 09/05/2017 01:37 AM, Chandan Rajendra wrote:
> > On Tuesday, September 5, 2017 12:12:08 PM IST Omar Sandoval wrote:
> >> On Mon, Sep 04, 2017 at 11:31:39PM -0700, Christoph Hellwig wrote:
> >>> On Tue, Sep 05, 2017 at 11:14:42AM +0530, Chandan Rajendra wrote:
> >>>> Linux kernel commit 6c6b6f28b3335fd85ec833ee0005d9c9dca6c003 (loop: set
> >>>> physical block size to PAGE_SIZE) now sets PAGE_SIZE as the default
> >>>> physical sector size of loop devices. On ppc64, this causes loop devices
> >>>> to have 64k as the physical sector size.
> >>>
> >>> Eek.  We'll need to revert the loop change ASAP!
> >>
> >> Most annoying patch series ever. It hasn't made it to Linus' tree yet,
> >> right? We can revert (although the later change depends on that), fold
> >> in a fix, or apply a fix on top of it, whatever Jens prefers.
> >>
> >>
> > 
> > My bad. 6c6b6f28b3335fd85ec833ee0005d9c9dca6c003 is the commit id from 
> > Linux-next. I don't see this commit in Linus's git tree.
> 
> Right, it's only queued up, and scheduled for the 2nd part of the
> block changes for 4.14. It should have been PAGE_CACHE_SIZE, but
> we don't have that anymore...

But PAGE_CACHE_SIZE was equal to PAGE_SIZE, so that would have been
wrong, too.

I just don't see why this is necessary, given that buffered IO
through the upper filesystem will already be doing page
sized/aligned IO where possible (because that's what the page cache
does!). And for direct IO the loop device should just export the
underlying host filesystem logical/physical sector sizes, which
should be optimal for the backing storage to begin with.

Someone want to enlighten me as to what problem is being solved
here?

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

  reply	other threads:[~2017-09-05 22:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-05  5:44 [PATCH] mkfs: Remove messages printed when blocksize < physical sectorsize Chandan Rajendra
2017-09-05  6:31 ` Christoph Hellwig
2017-09-05  6:42   ` Omar Sandoval
2017-09-05  7:37     ` Chandan Rajendra
2017-09-05 15:00       ` Jens Axboe
2017-09-05 22:06         ` Dave Chinner [this message]
2017-09-05 22:18           ` Omar Sandoval
2017-09-05 23:24             ` Dave Chinner
2017-09-06  0:01               ` Omar Sandoval
2017-09-05  6:44   ` Dave Chinner
2017-09-05 14:17     ` Eric Sandeen
2017-09-05 22:10       ` Dave Chinner
2017-09-05 22:16         ` Eric Sandeen
2017-09-08 16:55 ` Eric Sandeen
2017-09-09  6:41   ` Chandan Rajendra
2017-09-09  7:06     ` Dave Chinner

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=20170905220631.GL17782@dastard \
    --to=david@fromorbit.com \
    --cc=axboe@kernel.dk \
    --cc=chandan@linux.vnet.ibm.com \
    --cc=hch@infradead.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=osandov@fb.com \
    --cc=osandov@osandov.com \
    --cc=sandeen@sandeen.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.