pingqiuandClaude Opus 5.5 8640169e5c ublk: reclaim a stale device only when its server is proven dead; never unmap a running queue; submit every SQE
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>
2026-11-15 14:08:56 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%