Re: [PATCH 2/5] io_uring: use kiocb->private to hold rw_len

Christoph Hellwig
2021-08-11T11:41:23Z

On Tue, Aug 10, 2021 at 10:37:25AM -0600, Jens Axboe wrote:
> We don't need a separate member in io_rw for this, we can just use the
> kiocb->private field as we're not using it for anything else anyway.
> This saves 8 bytes in io_rw, which we'll be needing once kiocb grows
> a new member.

->private is owned by the file_operations instance, not the caller. So
this can't work.