Skip to content

introduce for_each_process_thread_break() and for_each_process_thread_continue()

Oleg Nesterov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2introduce for_each_process_thread_break() and for_each_process_thread_continue()include/linux/sched/signal.h kernel/exit.c+52 -02 replies
2/2hung_task: change check_hung_uninterruptible_tasks() to use for_each_process_thread_break/continuekernel/hung_task.c+9 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] introduce for_each_process_thread_break() and for_each_process_thread_continue()

Resend.

IMHO this makes sense anyway, but mostly this is preparation for other changes. show_state_filter() and other "slow" users of for_each_process() can livelock and even trigger hard lockups.

Peter, you have already reviewed at least 1/2 (heh, two years ago) and iirc you were mostly agree but pointed out that for_each_xxx() in _continue() could be SPEND_TOO_MUCH_TIME themselves. I added a note into the changelog.

Oleg.

 include/linux/sched/signal.h | 10 ++++++++++
 kernel/exit.c                | 42 ++++++++++++++++++++++++++++++++++++++++++
 kernel/hung_task.c           | 25 +++++++++----------------
 3 files changed, 61 insertions(+), 16 deletions(-)