summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fs.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs.zig b/src/fs.zig
index acb896b..7db6d08 100644
--- a/src/fs.zig
+++ b/src/fs.zig
@@ -591,7 +591,9 @@ pub fn Server(comptime Backend: type, comptime opts: Options) type {
const held = if (opts.fid_index) s.fids[0..s.high_water] else s.fids[0..];
for (held) |fid| if (fid.used and fid.node == node) return true;
if (s.job.kind != .none and s.job.node == node) return true;
- for (s.slots) |slot| if (slot.used and slot.req.node == node) return true;
+ // By pointer: by value copied every slot, park data and all
+ // (8 MiB at the default capacity), onto the caller's stack.
+ for (&s.slots) |*slot| if (slot.used and slot.req.node == node) return true;
return false;
}