From ac393d60a3d390ffc3b5f79e9099ecb805e80ba9 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 2 Dec 2024 13:48:58 -0500 Subject: ioq: Submit and pop requests in batches The new ioq_submit() function is now necessary to call to ensure the pending request batch is flushed. --- src/ioq.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ioq.h') diff --git a/src/ioq.h b/src/ioq.h index da0a525..5eaa066 100644 --- a/src/ioq.h +++ b/src/ioq.h @@ -189,6 +189,11 @@ int ioq_closedir(struct ioq *ioq, struct bfs_dir *dir, void *ptr); */ int ioq_stat(struct ioq *ioq, int dfd, const char *path, enum bfs_stat_flags flags, struct bfs_stat *buf, void *ptr); +/** + * Submit any buffered requests. + */ +void ioq_submit(struct ioq *ioq); + /** * Pop a response from the queue. * -- cgit v1.2.3