]> 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)
commitdb82160485ec6e503a4d32d61af3d507ce45ebf6
treecd14fa15bda865ec38701b835f3d1be64b2672f8
parent8de3e7ffe7661c8ca92be6ad9d768a11afbaf67f
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: 6bb2c14111c3 ("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