Re: [PATCH] fs: export emergency_sync

From: Christoph Hellwig
Date: Mon Jul 31 2023 - 03:29:34 EST


On Wed, Jul 19, 2023 at 01:51:25PM -0700, Dmitry Torokhov wrote:
> I am not sure why you would not want modules to use it - in the case we
> have here we detect a catastrophic failure in a critical system
> component (embedded controller crashed) and would like to have as much
> of the logs saved as possible. It is a module because this kind of EC
> may not be present on every system, but when it is present it is very
> much a core component.

I really don't think this is a kernel poicy in any way. Please do
a userspace upcall and let userspace deal with the policy decision.