On Wed, Jun 11, 2025 at 09:30:54AM -0400, Jeff Layton wrote: > > I'm concerned here too. Invalidation races can mean silent data > corruption. We'll need to ensure that this is safe. > > Incidentally, is there a good testcase for this? Something that does > buffered and direct I/O from different tasks and looks for > inconsistencies? We have a few xfstets racing different kinds of I/O and triggers the failing invalidation warnings. I'm not sure anything combines this with checks for data integrity.