diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-27 20:46:28 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-09-27 20:55:19 -0300 |
| commit | cca47d63c3ba774cb4de6f76603ba6edc5b475fe (patch) | |
| tree | a0e7c45ba191155be232240dbf53c9ae34f209ba /9proc/test/debug.sh | |
| parent | 82d8152cd15ea3ddd238caec2072bc2a1327a578 (diff) | |
| download | cloud9-cca47d63c3ba774cb4de6f76603ba6edc5b475fe.tar.gz cloud9-cca47d63c3ba774cb4de6f76603ba6edc5b475fe.zip | |
fs: a backend can keep a parked request by ticket and answer it later, and a clunk interrupts what is parked on its fid
A backend holding a read that has nothing yet had to find its park by
walking the engine's slots and matching a tag. Now Conn.hold() answers
.again and returns a Ticket (slot and that park's sequence number);
Conn.waiting() says whether that very park still waits, and
Conn.answerWith() answers it with what a producer makes, asking the
producer only while it waits and under the same lock, the way lib9p lets
a server keep a Req and respond() later, so a consuming answer is never
spent on a flushed request. The sequence number counts on across the
connections a runner slot serves (initIn keeps it), so a ticket of one
never names a park of the next. A clunk or remove fails everything
parked on its fid with EINTR first, so no slot outlives its fid to be
retried with a released handle or answered to a fid of the same number
walked anew; retry's check for a vanished fid is gone with it. 9ns maps
acme's "shut down" to EIO.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to '9proc/test/debug.sh')
0 files changed, 0 insertions, 0 deletions
