]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: expose single mmap capability
authorJens Axboe <axboe@kernel.dk>
Fri, 6 Sep 2019 16:26:21 +0000 (10:26 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 6 Sep 2019 16:26:21 +0000 (10:26 -0600)
commit6934c030203692a41ee64824edcfc4830887c0b8
treeae3942ae20234c0fdc5265d19a53fb865486a552
parentf739c4b60af46cf52ed0b6652f0233757b125495
io_uring: expose single mmap capability

After commit f739c4b60af4 we can get by with just a single mmap to
map both the sq and cq ring. However, userspace doesn't know that.

Add a features variable to io_uring_params, and notify userspace
that the kernel has this ability. This can then be used in liburing
(or in applications directly) to avoid the second mmap.

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