Re: [PATCH v1 0/3] introduce priority-based shutdown support

From: Greg Kroah-Hartman
Date: Fri Nov 24 2023 - 10:56:32 EST


On Fri, Nov 24, 2023 at 03:49:46PM +0000, Mark Brown wrote:
> On Fri, Nov 24, 2023 at 03:27:48PM +0000, Greg Kroah-Hartman wrote:
> > On Fri, Nov 24, 2023 at 03:21:40PM +0000, Mark Brown wrote:
>
> > > This came out of some discussions about trying to handle emergency power
> > > failure notifications.
>
> > I'm sorry, but I don't know what that means. Are you saying that the
> > kernel is now going to try to provide a hard guarantee that some devices
> > are going to be shut down in X number of seconds when asked? If so, why
> > not do this in userspace?
>
> No, it was initially (or when I initially saw it anyway) handling of
> notifications from regulators that they're in trouble and we have some
> small amount of time to do anything we might want to do about it before
> we expire.

So we are going to guarantee a "time" in which we are going to do
something? Again, if that's required, why not do it in userspace using
a RT kernel?

thanks,

greg k-h