Hello, IMHO this makes sense in any case, but mostly this is preparation for another change: show_state_filter() should be preemptible. But this needs more discussion, I'll write another email/patch when I fully understand the hard-lockup caused by sysrq-t.
Oleg. include/linux/sched.h | 10 ++++++++++ kernel/exit.c | 42 ++++++++++++++++++++++++++++++++++++++++++ kernel/hung_task.c | 41 ++++++++++++++++++++++++----------------- 3 files changed, 76 insertions(+), 17 deletions(-)