This repository has been archived on 2026-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
ollie-9p/internal
Levi Neely 2bc30d275c 9p: snapshot *wait baseline at open time to eliminate inter-read race
The previous design read the current value at read time. If a state
change fired between one cat returning and the next cat opening, the
new cat would see the changed value as current and wait forever for
the next change.

Fix: snapshot the baseline in the fid at Topen time. Each read blocks
until the value changes from the open-time snapshot, then updates the
fid's baseline for the next read. The race window is closed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-19 16:37:45 +02:00
..
p9 9p: snapshot *wait baseline at open time to eliminate inter-read race 2026-04-19 16:37:45 +02:00