diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-08-15 17:31:23 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-08-15 17:37:46 -0700 |
commit | 1113bb2ef5649fd750993f1decc9103580b3364e (patch) | |
tree | f963458de7e888a36678606650a7d77c5a71035c /src | |
parent | b59996ee8a0d5efec82bb7a429434ec27d346955 (diff) |
report-entry-arrays: read payloads via "fixed" fd
Take advantage of the registered fds.
Diffstat (limited to 'src')
-rw-r--r-- | src/report-entry-arrays.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/report-entry-arrays.c b/src/report-entry-arrays.c index edf138a..7480802 100644 --- a/src/report-entry-arrays.c +++ b/src/report-entry-arrays.c @@ -256,7 +256,8 @@ THUNK_DEFINE_STATIC(per_object, thunk_t *, self, uint64_t *, iter_offset, Object if (!op) return -ENOMEM; - io_uring_prep_read(op->sqe, (*journal)->fd, buf, payload_size, (*iter_offset) + offsetof(EntryArrayObject, items)); + io_uring_prep_read(op->sqe, (*journal)->idx, buf, payload_size, (*iter_offset) + offsetof(EntryArrayObject, items)); + op->sqe->flags = IOSQE_FIXED_FILE; op_queue(iou, op, THUNK( per_entry_array_payload(iou, op, payload_size, buf, stats, THUNK( journal_iter_next_object(iou, journal, header, iter_offset, iter_object_header, THUNK( |