On Tue, Jun 6, 2023 at 5:48 AM Andreas Gruenbacher <agrue...@redhat.com> wrote: > > - Don't get stuck writing page onto itself under direct I/O.
Btw, is there a test for this DIO case? We've had the deadlock issue on t page lock (or for inode locks or whatever) for normal IO when faulting in the same page that is written to, and we have as pattern for solving that and I think there are filesystem tests that trigger this. But the DIO pattern is a bit different, with the whole "invalidate page cache: issue, and the fact that you send this patch now (rather than years ago) makes me wonder about test coverage for this all? Linus