Messages in this thread | | | From | David Howells <> | Subject | Re: [RFC PATCH 27/28] sunrpc: Use sendmsg(MSG_SPLICE_PAGES) rather then sendpage | Date | Wed, 22 Mar 2023 13:10:06 +0000 |
| |
Trond Myklebust <trondmy@hammerspace.com> 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
| |