commit | 75b28affdd6aed1c68073ef53907c7bd822aff84 | [log] [tgz] |
---|---|---|
author | Hristo Venev <hristo@venev.name> | Mon Aug 26 17:23:46 2019 +0000 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Aug 27 10:42:02 2019 -0600 |
tree | 4a0f288bf42e5b8dfbc20c4d09dcaad41e69e59f | |
parent | 27c4d3a3252fa661b049b8f57a548bba331133e0 [diff] |
io_uring: allocate the two rings together Both the sq and the cq rings have sizes just over a power of two, and the sq ring is significantly smaller. By bundling them in a single alllocation, we get the sq ring for free. This also means that IORING_OFF_SQ_RING and IORING_OFF_CQ_RING now mean the same thing. If we indicate this to userspace, we can save a mmap call. Signed-off-by: Hristo Venev <hristo@venev.name> Signed-off-by: Jens Axboe <axboe@kernel.dk>