Thread (99 messages) flat view 99 messages, 12 authors, 2021-10-25

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

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2021-09-09 17:23:18
Also in: lkml, ocfs2-devel

On Thu, Sep 9, 2021 at 4:31 AM Christoph Hellwig [off-list ref] wrote:
What about just passing done_before as an argument to
iomap_dio_complete? gfs2 would have to switch to __iomap_dio_rw +
iomap_dio_complete instead of iomap_dio_rw for that, and it obviously
won't work for async completions, but you force sync in this case
anyway, right?
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.

But maybe now it's me who is misunderstanding.

          Linus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help