summaryrefslogtreecommitdiffstats
path: root/src/bftw.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-11-07 16:43:35 -0500
committerTavian Barnes <tavianator@tavianator.com>2023-11-09 10:41:55 -0500
commit5fe11b94b38bfb4d43637e05ac24da0d7d72b9ea (patch)
tree0e04290919f28fa9858aa92c016af7b7808627b5 /src/bftw.c
parent163baf1c9af13be0ce705b133e41e0c3d6427398 (diff)
downloadbfs-5fe11b94b38bfb4d43637e05ac24da0d7d72b9ea.tar.xz
ioq: Implement a better non-blocking pop
Diffstat (limited to 'src/bftw.c')
-rw-r--r--src/bftw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bftw.c b/src/bftw.c
index 5a55037..0b74cd9 100644
--- a/src/bftw.c
+++ b/src/bftw.c
@@ -588,7 +588,7 @@ static int bftw_ioq_pop(struct bftw_state *state, bool block) {
return -1;
}
- struct ioq_ent *ent = block ? ioq_pop(ioq) : ioq_trypop(ioq);
+ struct ioq_ent *ent = ioq_pop(ioq, block);
if (!ent) {
return -1;
}