Re: [PATCH] fs: prefer read_iter over read and write_iter over write

From: Jens Axboe
Date: Fri May 20 2022 - 18:18:17 EST


On 5/20/22 4:08 PM, David Laight wrote:
>> https://lore.kernel.org/lkml/Yoey+FOYO69lS5qP@xxxxxxxxx/
>>
>> The hope is that it eventually becomes faster... :-\
>
> I suspect all the xxx_iter functions need optimising for
> the common case of a single buffer in userspace.
>
> That also includes the code to read the iov[] from usespace.
> At the moment I think the 32bit compat code is actually
> faster than the native amd64 version!
> I've written some patches to speed that up.
> But the bigger improvements all hit massive changes
> to the ioring code.

Do you have a link to those patches? I can certainly help with the
io_uring side of things, and I have a genuine interest in improving the
core and getting the iter side up to snuff.

--
Jens Axboe