Re: [RFC PATCH 27/28] sunrpc: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpage
From: David Howells
Date: Wed Mar 22 2023 - 09:11:07 EST
Trond Myklebust <trondmy@xxxxxxxxxxxxxxx> wrote:
> Add an enum iter_type for ITER_ITER ? :-)
Actually, that might not be such a bad idea, now that I've pondered on it some
more. Give it an array of iterators and add a flag to each iterator to say if
it can be spliced from or not.
Once ITER_PIPE is killed off, advancing and reverting over it should be pretty
straightforward - though each iterator would also need to keep track of how
big it started off as in order that it can be reverted over.
David