]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/io_uring.c
io_uring: add 'cq_flags' field for the CQ ring
authorStefano Garzarella <sgarzare@redhat.com>
Fri, 15 May 2020 16:38:04 +0000 (18:38 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 15 May 2020 18:16:59 +0000 (12:16 -0600)
commit0d9b5b3af134cddfdc1dd31d41946a0ad389bbf2
tree952ae2ef5e1f2a4dd9c63aeb52483dbc54ee37c5
parent18bceab101adde8f38de76016bc77f3f25cf22f4
io_uring: add 'cq_flags' field for the CQ ring

This patch adds the new 'cq_flags' field that should be written by
the application and read by the kernel.

This new field is available to the userspace application through
'cq_off.flags'.
We are using 4-bytes previously reserved and set to zero. This means
that if the application finds this field to zero, then the new
functionality is not supported.

In the next patch we will introduce the first flag available.

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