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)
commit29c1ac230e6056b26846c66881802b581a78ad72
treecd14fa15bda865ec38701b835f3d1be64b2672f8
parent386e4fb6962b9f248a80f8870aea0870ca603e89
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: 0455d4ccec54 ("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