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, 2 May 2022 20:23:18 +0000 (14:23 -0600)
commit84ad9e293bf963bb5349654f0fcec86668afdf4f
treec00e38ae010019e2f5a82e1fced4ecb3d37d9ad2
parentd84133e2762fc08c2a887bf41ef67a167ca6fede
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