Re: [PATCH v7 16/19] iomap: Add done_before argument to iomap_dio_rw

From: Christoph Hellwig
Date: Fri Sep 10 2021 - 03:40:16 EST

On Thu, Sep 09, 2021 at 10:22:56AM -0700, Linus Torvalds wrote:
> I think you misunderstand.
> Or maybe I do.
> It very much doesn't force sync in this case. It did the *first* part
> of it synchronously, but then it wants to continue with that async
> part for the rest, and very much do that async completion.
> And that's why it wants to add that "I already did X much of the
> work", exactly so that the async completion can report the full end
> result.

Could be, and yes in that case it won't work.