From: Christoph Hellwig <hch@lst.de>
To: daejun7.park@samsung.com
Cc: Chuck Lever <cel@kernel.org>, Jeff Layton <jlayton@kernel.org>,
NeilBrown <neil@brown.name>,
Olga Kornievskaia <okorniev@redhat.com>,
Dai Ngo <Dai.Ngo@oracle.com>, Tom Talpey <tom@talpey.com>,
Christoph Hellwig <hch@lst.de>, Carlos Maiolino <cem@kernel.org>,
Amir Goldstein <amir73il@gmail.com>,
"Darrick J. Wong" <djwong@kernel.org>,
Dave Chinner <dgc@kernel.org>,
Sergey Bashirov <sergeybashirov@gmail.com>,
Christian Brauner <brauner@kernel.org>,
linux-nfs@vger.kernel.org, linux-xfs@vger.kernel.org,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 2/2] exportfs, xfs, nfsd: map a whole pNFS block layout in one ->map_blocks call
Date: Tue, 1 Dec 2026 09:24:53 +0100 [thread overview]
Message-ID: <20261201082453.GD26856@lst.de> (raw)
In-Reply-To: <20261126-xfs-nfsd-map-blocks-v2-2-6d85b1388739@samsung.com>
On Thu, Nov 26, 2026 at 10:52:26AM +0900, Daejun Park via B4 Relay wrote:
> ---
> The medians are over 60 LAYOUTGETs from three boots per kernel, and 160
> from eight boots for one extent. The median of one boot for one extent
> is 0.5 to 2.4 us over both kernels. pynfs block tests over the block
> layout and fstests generic/075, 091 and 263 over the block and SCSI
> layouts give the same results as without this series, with KASAN and
> lockdep. With XFS_DEBUG, generic/013, 075, 091, 112, 127 and 263 run,
> and 075, 112 and 127 fail with fsx errors as without this series.
Interesting, I've not usually seen them fail with pnfs layouts. Do
you only see this with DEBUG enabled? What is the failure mode?
> +++ b/fs/nfsd/blocklayout.c
> @@ -20,48 +20,19 @@
>
>
> /*
> - * Get an extent from the file system that contains offset. It may start
> - * below offset and may end before or after offset + length.
> + * Turn a mapping from the filesystem into an extent of the layout.
> */
> static __be32
> -nfsd4_block_map_extent(struct inode *inode, const struct svc_fh *fhp,
> - u64 offset, u64 length, u32 iomode, u64 minlength,
> - struct pnfs_block_extent *bex)
> +nfsd4_block_iomap_to_extent(const struct iomap *iomap, u32 iomode,
> + u64 minlength, struct pnfs_block_extent *bex)
Can you split the refactoring of this helper into a prep patch? That'll
make the real change much easier to read.
Also maybe break up the nfsd/exportfs change for the new interface
into one patch, and then another one for filling in more than a
single extent in xfs, as that might be useful if we have to bisect
bugs later.
next prev parent reply other threads:[~2026-12-01 8:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 1:52 [PATCH v2 0/2] exportfs, xfs, nfsd: map a whole pNFS block layout in one ->map_blocks call Daejun Park via B4 Relay
2026-11-26 1:52 ` [PATCH v2 1/2] xfs: factor the mapping of one pNFS extent out of xfs_fs_map_blocks() Daejun Park via B4 Relay
2026-12-01 8:17 ` Christoph Hellwig
2026-11-26 1:52 ` [PATCH v2 2/2] exportfs, xfs, nfsd: map a whole pNFS block layout in one ->map_blocks call Daejun Park via B4 Relay
2026-12-01 8:24 ` Christoph Hellwig [this message]
2026-12-01 8:21 ` [PATCH v2 0/2] " Christoph Hellwig
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=20261201082453.GD26856@lst.de \
--to=hch@lst.de \
--cc=Dai.Ngo@oracle.com \
--cc=amir73il@gmail.com \
--cc=brauner@kernel.org \
--cc=cel@kernel.org \
--cc=cem@kernel.org \
--cc=daejun7.park@samsung.com \
--cc=dgc@kernel.org \
--cc=djwong@kernel.org \
--cc=jlayton@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--cc=neil@brown.name \
--cc=okorniev@redhat.com \
--cc=sergeybashirov@gmail.com \
--cc=tom@talpey.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