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

From: Greg Kroah-Hartman
Date: Fri Nov 24 2023 - 10:27:55 EST


On Fri, Nov 24, 2023 at 03:21:40PM +0000, Mark Brown wrote:
> On Fri, Nov 24, 2023 at 03:05:47PM +0000, Greg Kroah-Hartman wrote:
>
> > Anyway, this is ripe for problems and issues in the long-run, what is so
> > special about this hardware that it can not just shutdown in the
> > existing order that it has to be "first" over everyone else? What
> > exactly does this prevent and what devices are requiring this?
>
> > And most importantly, what has changed in the past 20+ years to
> > suddenly require this new functionality and how does any other operating
> > system handle it?
>
> 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?

thanks,

greg k-h