Skip to content

More cleanups in do_wait() pathes

Vitaly Mayatskikh lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Introduce "struct wait_info" to simplify wait_task*() patheskernel/exit.c+63 -534 replies
2/3Replace wait_noreap_copyout() by copy_wait_opts_to_user()kernel/exit.c+5 -120 replies
3/3Move more common code from wait_task_*() to copy_wait_opts_to_user()kernel/exit.c+16 -240 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] More cleanups in do_wait() pathes

Further cleanups of do_wait() and friends. Thanks for all your reviews of previous patches and ideas how to make it better. I'm currently running kernel with these patches on my laptop for 1+ day, it is still able to boot and live 5-10 hours w/o visible issues.

Next task is to optimize a bunch of put_user() in copy_wait_opts_to_user(), but I'd like to use Ingo's idea with put_user_try/catch. Therefore, need to implement generic stub for architectures which does not support try/catch yet.

Vitaly Mayatskikh (3):
Introduce "struct wait_info" to simplify wait_task*() pathes Replace wait_noreap_copyout() by copy_wait_opts_to_user() Move more common code from wait_task_*() to copy_wait_opts_to_user()

 kernel/exit.c |  127 +++++++++++++++++++++++++++-----------------------------
 1 files changed, 61 insertions(+), 66 deletions(-)