]> git.itanic.dy.fi Git - linux-stable/commit
io_uring: don't guard IORING_OFF_PBUF_RING with SETUP_NO_MMAP
authorJens Axboe <axboe@kernel.dk>
Tue, 28 Nov 2023 00:08:19 +0000 (17:08 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Nov 2023 00:10:56 +0000 (17:10 -0700)
commit6f007b1406637d3d73d42e41d7e8d9b245185e69
tree577849edef207a99b2a15f133ef8886cb1e030e0
parent820d070feb668aab5bc9413c285a1dda2a70e076
io_uring: don't guard IORING_OFF_PBUF_RING with SETUP_NO_MMAP

This flag only applies to the SQ and CQ rings, it's perfectly valid
to use a mmap approach for the provided ring buffers. Move the
check into where it belongs.

Cc: stable@vger.kernel.org
Fixes: 03d89a2de25b ("io_uring: support for user allocated memory for rings/sqes")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/io_uring.c