diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-08-15 17:25:24 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-08-15 17:25:24 -0700 |
commit | b59996ee8a0d5efec82bb7a429434ec27d346955 (patch) | |
tree | baa88f9690f4c010bb551e79bc914d4cc3bcf9dd /src/bootid.c | |
parent | 137df47e1d7bc3ba84f68219ee475eb5318dcf56 (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 'src/bootid.c')
0 files changed, 0 insertions, 0 deletions