summaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorPavel Begunkov <asml.silence@gmail.com>2021-04-28 15:11:29 +0300
committerJens Axboe <axboe@kernel.dk>2021-04-29 22:26:19 +0300
commit6224843d56e0c29c0357e86b02b95801897c2caf (patch)
tree606736878ba8922977703f743bd22c5eb3f3d97b /include/linux/fpga/fpga-mgr.h
parentb0d658ec88a695861c3fd78ef783c1181f81a6e2 (diff)
downloadlinux-6224843d56e0c29c0357e86b02b95801897c2caf.tar.xz
io_uring: allow empty slots for reg buffers
Allow empty reg buffer slots any request using which should fail. This allows users to not register all buffers in advance, but do it lazily and/or on demand via updates. That is achieved by setting iov_base and iov_len to zero for registration and/or buffer updates. Empty buffer can't have a non-zero tag. Implementation details: to not add extra overhead to io_import_fixed(), create a dummy buffer crafted to fail any request using it, and set it to all empty buffer slots. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/7e95e4d700082baaf010c648c72ac764c9cc8826.1619611868.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions