> From: Joonho Lee <[email protected]> > > A native PCM control request that times out remains owned by the device. > The driver therefore stops sending PCM control requests for the stream > until the device state is known. Only a device reset cleared that state, > and a reset happens only on remove or freeze. One reply arriving after > msg_timeout_ms left open, hw_params, prepare and trigger returning -EIO > until the driver was rebound or the guest resumed from suspend. > > Keep the ordering guarantee, but let the reply resolve it. After a > synchronous wait times out, decide under the control queue lock whether > the reply has already completed. If not, mark the request late and count > it on the substream. When the device completes the request, apply its > result to the native device state and clear the unknown state once no > late request remains: > [ ... ] > queue and stream locks before restoring capture_stopping and > capture_quiet_sequence. > > Assisted-by: LLM > Signed-off-by: Joonho Lee <[email protected]>
Sashiko has reviewed this patch and found no issues. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/20261113-fix-virtio-snd-recovery-final-v33-0-13a934ad5...@gmail.com?part=18
