summaryrefslogtreecommitdiff
path: root/scripts/subarch.include
diff options
context:
space:
mode:
authorDaejun Park <daejun7.park@samsung.com>2026-10-29 11:23:04 +0900
committerCarlos Maiolino <cem@kernel.org>2026-11-03 15:15:36 +0100
commit23ba20ef280cc2563d92b3581d5123b333569190 (patch)
tree5ecdf5228798b81968eb242ae1ccba30880a0952 /scripts/subarch.include
parent29f3c1be4e554c9dbc66e13333034e0947477cb6 (diff)
xfs: take the invalidate lock while mapping a pNFS layout
xfs_fs_map_blocks() flushes the page cache under the iolock, but a write fault takes only the invalidate lock. A fault on a shared mapping can then add a delalloc extent before the range is mapped. That trips an ASSERT, or nfsd warns and refuses the layout. Take the invalidate lock with the iolock, as __xfs_file_fallocate() does. Not for stable: pNFS already leaves local writers to shared mappings unsynchronized. Suggested-by: Darrick J. Wong <djwong@kernel.org> Link: https://lore.kernel.org/r/20260519145949.GH9555@frogsfrogsfrogs Signed-off-by: Daejun Park <daejun7.park@samsung.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'scripts/subarch.include')
0 files changed, 0 insertions, 0 deletions