summaryrefslogtreecommitdiff
path: root/libiou
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-08-15 17:25:24 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-08-15 17:25:24 -0700
commitb59996ee8a0d5efec82bb7a429434ec27d346955 (patch)
treebaa88f9690f4c010bb551e79bc914d4cc3bcf9dd /libiou
parent137df47e1d7bc3ba84f68219ee475eb5318dcf56 (diff)
journals: register opened journals for "fixed" use
This introduces an journal_t.idx member for "fixed" style usage in io_uring parlance. Once all journals get opened, they're registered in the underlying iou ring. Subsequent operations on these files may supply these idx values as the fd, but must also add IOSQE_FIXED_FILE to the sqe's flags. This commit also switches the already present read operations to use the idx/IOSQE_FIXED_FILE method. Theoretically this should offer some efficiency gains, since the kernel can now skip some per-operation fd handling overheads by having them done once instead @ registration time.
Diffstat (limited to 'libiou')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved