Re: [PATCH v8 3/3] ASoC: SOF: Fix deadlock when shutdown a frozen userspace

From: Oliver Neukum
Date: Thu Dec 01 2022 - 07:29:08 EST


On 01.12.22 12:08, Ricardo Ribalda wrote:
If we are shutting down due to kexec and the userspace is frozen, the
system will stall forever waiting for userspace to complete.

Do not wait for the clients to complete in that case.

Hi,

I am afraid I have to state that this approach is bad in every case,
not just this corner case. It basically means that user space can stall
the kernel for an arbitrary amount of time. And we cannot have that.

Regards
Oliver