Re: [PATCH] xfs: map pNFS layouts to the end of the extent again
From: Carlos Maiolino
Date: Thu Oct 08 2026 - 09:37:47 EST
On Tue, 06 Oct 2026 09:34:25 +0900, Daejun Park wrote:
> Since commit 36ca6f11424a ("xfs: fix overlapping extents returned for
> pNFS LAYOUTGET"), xfs_fs_map_blocks() maps only the range that nfsd asks
> for. For O_DIRECT, the Linux block layout client asks for the range of
> the I/O at hand, so it now needs a LAYOUTGET for every O_DIRECT read or
> write to a part of a file it has no layout for yet, where the first
> LAYOUTGET used to return the whole extent. Each LAYOUTGET is a round
> trip, and xfs_fs_map_blocks() takes the iolock exclusively and writes
> back and invalidates the page cache of the file for it.
>
> [...]
Applied to for-next, thanks!
[1/1] xfs: map pNFS layouts to the end of the extent again
commit: e3c682dd11303a95ff82ea63b9172dce788578d4
Best regards,
--
Carlos Maiolino <cem@xxxxxxxxxx>