cgroup: fix race between cgroup_post_fork() and cgroup_migrate()
Status from this message: Applied to cgroup/for-4.5.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | cgroup: pids: fix race between cgroup_post_fork() and cgroup_migrate()kernel/ kernel/ | +5 | 0 replies | |
| 2/3 | cgroup: pids: kill pids_fork(), simplify pids_can_fork() and pids_cancel_fork()kernel/ | +10 | 0 replies | |
| 3/3 | cgroup: kill cgrp_ss_priv[CGROUP_CANFORK_COUNT] and friendsinclude/ include/ include/ +5 more | +23 | 1 reply |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Zefan Li |
|---|---|
| Series | A-b |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] cgroup: fix race between cgroup_post_fork() and cgroup_migrate()
Quoted 4 lines · Oleg Nesterov
OK. I do not know what exactly do you mean, perhaps if you fix this problem the race between fork and attach goes away and in this case the fix I sent is not needed?
Otherwise please consider this series.
Slightly tested, seems to work; please review.
Oleg.
include/linux/cgroup-defs.h | 12 ++------ include/linux/cgroup.h | 19 ++++--------- include/linux/cgroup_subsys.h | 18 ------------ kernel/cgroup.c | 30 +++++---------------- kernel/cgroup_freezer.c | 2 +- kernel/cgroup_pids.c | 58 +++++++--------------------------------- kernel/fork.c | 16 ++++------- kernel/sched/core.c | 2 +- 8 files changed, 34 insertions(+), 123 deletions(-)