io_uring/kbuf: move pinning of provided buffer ring into helper
authorJens Axboe <axboe@kernel.dk>
Tue, 14 Mar 2023 16:55:50 +0000 (10:55 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 3 Apr 2023 13:14:20 +0000 (07:14 -0600)
commitba56b63242d12df088ed9a701cad320e6b306dfe
treea08d6e6286af047edf182e8f0e2f06cd9bf3249f
parentd808459b2e31bd5123a14258a7a529995db974c8
io_uring/kbuf: move pinning of provided buffer ring into helper

In preparation for allowing the kernel to allocate the provided buffer
rings and have the application mmap it instead, abstract out the
current method of pinning and mapping the user allocated ring.

No functional changes intended in this patch.

Acked-by: Helge Deller <deller@gmx.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/kbuf.c