Skip to content

exit: avoid O(n ** 2) thread-list scan on group-exit if possible

Oleg Nesterov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3exit: reparent: avoid find_new_reaper() if no childrenkernel/exit.c+3 -02 replies
2/3exit: reparent: call forget_original_parent() under tasklist_lockkernel/exit.c+23 -240 replies
3/3exit: exit_notify: re-use "dead" list to autoreap currentkernel/exit.c+2 -40 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/3] exit: avoid O(n ** 2) thread-list scan on group-exit if possible
Quoted 3 lines · Oleg Nesterov

but I found other bugs in this area. Fix them first. This is also preparation for the next changes in exit_notify() paths.

Finally the optimization I had in mind from the very beginning.

Probably this is not the last series... in particular it seems that we have some problems with sys_setns() in this area, but I need to recheck. Plus more cleanups/microoptimizations.

Oleg.

 kernel/exit.c |   50 +++++++++++++++++++++++++-------------------------
 1 files changed, 25 insertions(+), 25 deletions(-)