From 8cc305b2ea1f85895b086cf6d84d20be460499b8 Mon Sep 17 00:00:00 2001 From: Levi Neely Date: Sun, 19 Apr 2026 21:19:43 +0200 Subject: [PATCH] p9: remove statewait Topen baseline snapshot --- internal/p9/server.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/internal/p9/server.go b/internal/p9/server.go index 2708acc..78941ec 100644 --- a/internal/p9/server.go +++ b/internal/p9/server.go @@ -533,24 +533,6 @@ func (s *Server) open(cs *connState, fc *plan9.Fcall) *plan9.Fcall { } f.mode = fc.Mode - // Snapshot the current value for *wait files at open time so that the - // baseline is fixed before any read — eliminating the race between a - // prior read returning and the next read opening. - if strings.HasSuffix(pathBase(f.path), "wait") { - parts := strings.SplitN(strings.TrimPrefix(f.path, "/"), "/", 3) - if len(parts) == 3 { - switch parts[0] { - case "s": - if store, ok := s.sessionFileStore(parts[1]); ok { - f.waitBase = store.CurrentWaitValue(parts[2]) - } - case "b": - if js, ok := s.batchStore.JobStore(parts[1]); ok { - f.waitBase = js.CurrentWaitValue(parts[2]) - } - } - } - } plog.Debug("Topen fid=%d path=%q mode=%d", fc.Fid, f.path, fc.Mode) return &plan9.Fcall{Type: plan9.Ropen, Tag: fc.Tag, Qid: f.qid} }