Re: [PATCH 5/6] NFSD: leverage DIO alignment to selectively issue O_DIRECT reads and writes

Christoph Hellwig
2025-06-12T07:22:03Z

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.