Skip to content

fs/proc: do_task_stat: use sig->stats_lock

Oleg Nesterov lkml 1 version Applied

Status from this message: [merged mm-hotfixes-stable] exit-wait_task_zombie-kill-the-no-longer-necessary-spin_lock_irqsiglock.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesApplied 3/3

Patches in v1 All 3 applied

#Subject and filesSizeRepliesApplied
1/3fs/proc: do_task_stat: move thread_group_cputime_adjusted() outside of lock_task_sighand()fs/proc/array.c+6 -41 replyApplied
2/3fs/proc: do_task_stat: use sig->stats_lock to gather the threads/children statsfs/proc/array.c+32 -261 replyApplied
3/3exit: wait_task_zombie: kill the no longer necessary spin_lock_irq(siglock)kernel/exit.c+3 -71 replyApplied

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] fs/proc: do_task_stat: use sig->stats_lock

do_task_stat() has the same problem as getrusage() had before getrusage-use-sig-stats_lock-rather-than-lock_task_sighand.patch

3/3 depends on the patch above.

Oleg.

 fs/proc/array.c | 66 ++++++++++++++++++++++++++++++++-------------------------
 kernel/exit.c   | 10 +++------
 2 files changed, 40 insertions(+), 36 deletions(-)