io_uring: add support for 128-byte SQEs
authorJens Axboe <axboe@kernel.dk>
Fri, 1 Apr 2022 01:27:52 +0000 (19:27 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 May 2022 12:35:33 +0000 (06:35 -0600)
commitebdeb7c01d025cb059f05dc26b9dc914e46dd43f
tree277d08ae7ef441660c3287eba92195b05becea9d
parentb5ba65df47cabcba6fe7a03f8f57513e9f78f72f
io_uring: add support for 128-byte SQEs

Normal SQEs are 64-bytes in length, which is fine for all the commands
we support. However, in preparation for supporting passthrough IO,
provide an option for setting up a ring with 128-byte SQEs.

We continue to use the same type for io_uring_sqe, it's marked and
commented with a zero sized array pad at the end. This provides up
to 80 bytes of data for a passthrough command - 64 bytes for the
extra added data, and 16 bytes available at the end of the existing
SQE.

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