From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.95.11.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796113498; b=LeZx3U4S50nwpBbQNeKH13f0vH0okZDdhqkKl6eX7yncvLZ6eFltB2Ca994AyEvbyqXh 7dMhkNKpnMkyfWUjhrMuC6jYkG2t5iN8170AdHEEeJxsV2IEddc7qb4+6YnC4c4tWpjJV JSiFz3BF2gVec6wX9XtQU/7PLm2732kINu080VOvnbZy2EoYvsv6MmyDjnBMlYs0u/+0+ sqTPCWdecS5G3mm2RPmMSznINJb9jCV1QyXw01UN/lwfQHQFMUNPdZaUPbIiT1OXeiak8 vGsNTzJnQEC5Ai03RKyZsPwbXufpoTNfcJlTpjYE/lbs1O5m/Hd5RYq0FhqKIUnjeiw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796113498; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; bh=KvflQbxtna2OlKFagsAq7BGE//yVPsOTUKLaa6/OJM8=; b=DzbX+tNQ7ncBCyMsnmVmSJiXGj2VmEZCc3dLJ5/MEG4v2zbB0HHpWEgUd7hjw8PPHCym XnB61e+21nL6wZYQYaRbQWPLdHLspS+SrtsUZcfzQNfKSWXv98mrZKiPK4Oj4Mty/jcnu v35Uz8ASzvhRQXhAr+qjGRpsfz0ua/zc2zl/QpQqIsYhlrltyNWg4NApxjtNMKb5ncLyk x87eW1jqvwLHg1HqATR0bLCNlgyxCIaI9AKBSubIY4JM0iF3n+/k3a5Y/MG+L6yEsY9fx 9CcAnjr86kXXb1vIR+xwzwIYqUSdKGhCweLES9A8wN0psvddFcmBwyYjk0KJ6Rmj5Kg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.remote-ip=213.95.11.211 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F75B606A31A; Tue, 1 Dec 2026 08:24:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3F75B606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 6DA1E68BFE; Tue, 1 Dec 2026 09:24:53 +0100 (CET) Date: Tue, 1 Dec 2026 09:24:53 +0100 From: Christoph Hellwig To: daejun7.park@samsung.com Cc: Chuck Lever , Jeff Layton , NeilBrown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Christoph Hellwig , Carlos Maiolino , Amir Goldstein , "Darrick J. Wong" , Dave Chinner , Sergey Bashirov , Christian Brauner , 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 Message-ID: <20261201082453.GD26856@lst.de> References: <20261126-xfs-nfsd-map-blocks-v2-0-6d85b1388739@samsung.com> <20261126-xfs-nfsd-map-blocks-v2-2-6d85b1388739@samsung.com> X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261126-xfs-nfsd-map-blocks-v2-2-6d85b1388739@samsung.com> User-Agent: Mutt/1.5.17 (2007-11-01) 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.