OSDN Git Service

io_uring: simplify struct io_uring_sqe layout
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 24 Jun 2021 14:09:59 +0000 (15:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 20:15:39 +0000 (14:15 -0600)
commit9ba6a1c06279ce499fcf755d8134d679a1f3b4ed
tree15a7ae85369dc0ca96a347bf5b63eefccebea00a
parent16340eab61a3ed1b5c983c19cfa9f51929b2beeb
io_uring: simplify struct io_uring_sqe layout

Flatten struct io_uring_sqe, the last union is exactly 64B, so move them
out of union { struct { ... }}, and decrease __pad2 size.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/2e21ef7aed136293d654450bc3088973a8adc730.1624543113.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h