Re: [PATCH 0/6] ublk zero-copy support

Ming Lei
2025-02-08T07:52:30Z

On Fri, Feb 07, 2025 at 07:06:54AM -0700, Keith Busch wrote:
> On Fri, Feb 07, 2025 at 11:51:49AM +0800, Ming Lei wrote:
> > On Mon, Feb 03, 2025 at 07:45:11AM -0800, Keith Busch wrote:

...

> > Does this interface support to read to partial buffer? Which is useful
> > for stacking device cases.
>
> Are you wanting to read into this buffer without copying in parts? As in
> provide an offset and/or smaller length across multiple commands? If
> that's what you mean, then yes, you can do that here.

Sorry, forget another problem here.

For short read, we need to zero the remained bytes in each part of buffer,
how to deal with that?

Please see io_req_zero_remained() in my patch of "[PATCH V10 10/12] io_uring:
support leased group buffer with REQ_F_GROUP_BUF":

https://lore.kernel.org/linux-block/20241107110149.890530-11-ming.lei@redhat.com/#r

Thanks,
Ming