exit: avoid O(n ** 2) thread-list scan on group-exit if possible
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | exit: reparent: avoid find_new_reaper() if no childrenkernel/ | +3 | 2 replies | |
| 2/3 | exit: reparent: call forget_original_parent() under tasklist_lockkernel/ | +23 | 0 replies | |
| 3/3 | exit: exit_notify: re-use "dead" list to autoreap currentkernel/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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(-)