Re: [PATCH-next 2/3] sysctl/sysrq: Remove __sysrq_enabled copy

From: Iurii Zaikin
Date: Thu Jan 09 2020 - 22:19:51 EST


> Furthermore, the private copy isn't correct already in case
> sysrq_always_enabled is true. So, remove __sysrq_enabled and use a
> getter-helper for sysrq enabled status.
Since the old way was known to be unreliable, the new way looks like a
great candidate for a KUnit test.

Off topic: I wonder if Magic Sysrq could be extended with reasonable
effort to be triggered by a sequence of keystrokes which would be less
likely to be generated by a noisy serial.