]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
io_uring/rsrc: replace reg buffer bit field with flags
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 9 Feb 2026 14:31:22 +0000 (14:31 +0000)
committerJens Axboe <axboe@kernel.dk>
Tue, 10 Feb 2026 12:26:15 +0000 (05:26 -0700)
commit0efc331d78b043b9d8477c64e279058062d36a0b
tree06090933429315f04bffab25f1a785e9f1ac3141
parent417d029dc412c1028bce3d4685700332c0539a95
io_uring/rsrc: replace reg buffer bit field with flags

I'll need a flag in the registered buffer struct for dmabuf work, and
it'll be more convenient to have a flags field rather than bit fields,
especially for io_mapped_ubuf initialisation.

We might want to add more flags in the future as well. For example, it
might be useful for debugging and potentially optimisations to split out
a flag indicating the shape of the buffer to gate iov_iter_advance()
walks vs bit/mask arithmetics. It can also be combined with the
direction mask field.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_uring/rsrc.c
io_uring/rsrc.h
io_uring/rw.c