mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
8640169e5ca030c679cdead7a130a06dc1c8ff22
Review P1s: - reclaimStale reads the device's recorded server pid (GET_DEV_INFO) and deletes the device only if that process no longer exists (signal 0 -> ESRCH). Owner alive, liveness unknown, never started (no pid) or info unreadable: Start refuses and sends no STOP/DEL. A reused pid reads as alive: refused. - settleQueues waits until one shared deadline and releases only queues whose thread has exited; a queue still running keeps its mappings (leaked, fail closed) and Close reports it, and skips DEL_DEV, which would otherwise wait forever for the char device the mappings hold. - submitAndWait offers the ring's unconsumed SQEs again after a short io_uring_enter until the kernel has taken all of them, then waits for completions; a call that consumes nothing is an error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.5%
Rust
7.9%
Shell
2.7%
templ
1.6%
Java
1%
Other
2%