[PATCH 0/3] introduce for_each_process_thread_{break,continue}() helpers
From: Oleg Nesterov
Date: Mon Jul 25 2016 - 12:23:40 EST
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(-)