]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: keep sendrecv flags in ioprio
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 30 Jun 2022 12:25:57 +0000 (13:25 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 30 Jun 2022 13:15:50 +0000 (07:15 -0600)
commitd47a6144400cac2efb74de5ac6266d8033c15023
treecd14fa15bda865ec38701b835f3d1be64b2672f8
parent9ab7fb468bcf5c7b2d8e6daad79ed8a6d4c9c112
io_uring: keep sendrecv flags in ioprio

We waste a u64 SQE field for flags even though we don't need as many
bits and it can be used for something more useful later. Store io_uring
specific send/recv flags in sqe->ioprio instead of ->addr2.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Fixes: ba66ea9ff301 ("io_uring: add POLL_FIRST support for send/sendmsg and recv/recvmsg")
[axboe: change comment in io_uring.h as well]
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
include/uapi/linux/io_uring.h