diff options
Diffstat (limited to 'src/fs.zig')
| -rw-r--r-- | src/fs.zig | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |
