]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: get rid of req->io/io_async_ctx union
authorJens Axboe <axboe@kernel.dk>
Sun, 16 Aug 2020 01:44:09 +0000 (18:44 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Oct 2020 02:32:34 +0000 (20:32 -0600)
commita5189781548df3245ce415fd9a096f84f1712bd9
tree397fda9e7e0187a2a7a64528c276442dc99c4424
parent0488e2d12800b8dec3e3ef3c5fc023a653c86de1
io_uring: get rid of req->io/io_async_ctx union

There's really no point in having this union, it just means that we're
always allocating enough room to cater to any command. But that's
pointless, as the ->io field is request type private anyway.

This gets rid of the io_async_ctx structure, and fills in the required
size in the io_op_defs[] instead.

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