]> 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)
commit1b0baaa93f30385c77df75edc83449c885e5a1d9
tree397fda9e7e0187a2a7a64528c276442dc99c4424
parent0298165ed5048ac7839e8d1ded8be7bf5379c4d8
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