]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: add and use struct io_rw for read/writes
authorJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2019 15:45:55 +0000 (08:45 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Dec 2019 16:52:45 +0000 (09:52 -0700)
commit5e86afad123a0d45c7d8a44da5844fb4c59fd4e2
treeec6209a7e0524977572b48d8ab501d29556057e2
parent0c03b61ca5b5daf243e9059fc36b481af9414f42
io_uring: add and use struct io_rw for read/writes

Put the kiocb in struct io_rw, and add the addr/len for the request as
well. Use the kiocb->private field for the buffer index for fixed reads
and writes.

Any use of kiocb->ki_filp is flipped to req->file. It's the same thing,
and less confusing.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c