Repository navigation
fastrpc: quarantine domain after queue teardown failure - #427
Conversation
|
context around this PR moved the changes related to dspqueue_cpu from #399 to here question pending: on src/dspqueue/dspqueue_cpu.c:L196-L200 to which i replied A retry is possible, but not safely with the current teardown flow. The current tradeoff i see is to retain the affected domain state and sacrifice that domain’s availability rather than risk corrupting process state. If runtime recovery is required, I’d implement it as an explicit staged retry path.(maybe split this into 2 PR, one for this specifically, any remaining can be here) ref:#399 (comment) |
If signal-wait cancellation or worker joining fails, retain the domain state and mark it unavailable rather than freeing memory a worker may still access. Later queue creation on that domain fails with AEE_EBADSTATE; teardown is not retried during the process lifetime. Preserve the original queue-creation error during cleanup, and do not return a domain teardown error from dspqueue_close() after the queue handle has been freed. Document the quarantine behavior. Signed-off-by: Dhruv Menon <[email protected]>
d8455d9 to
38157d4
Compare
🤖 FastRPC AI Code Review — ✅ No issues found · patch
|
|
Pre-merge CI results — patch Validated On
Kernel: Test Matrix
LAVA Jobs:
|
3b7f929
into
qualcomm:development
If signal-wait cancellation or worker joining fails, retain the domain state and mark it unavailable rather than freeing memory a worker may still access. Later queue creation on that domain fails with AEE_EBADSTATE; teardown is not retried during the process lifetime.
Preserve the original queue-creation error during cleanup, and do not return a domain teardown error from dspqueue_close() after the queue handle has been freed. Document the quarantine behavior.
fixes #398