Make bsd process accounting work in pid namespaces
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 of 10 patches 0 repliesNew
9 of 10 patches are in this archive. The cover letter announces 10.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | Bsdacct: rename acct_glbl structurekernel/ | +2 | 0 replies | |
| 2/10 | Pidns: use kzalloc to allocate new pid namespacekernel/ | +2 | 0 replies | |
| 3/10 | Pidns: add struct bsd_acct_struct *bacct field on pid_namespaceinclude/ | +5 | 0 replies | |
| 4/10 | Bsdacct: fix bogus comment near acct_processkernel/ | +0 | 0 replies | |
| 6/10 | Bsdacct: make the acct_lock globalkernel/ | +21 | 0 replies | |
| 7/10 | Bsdacct: stop using global bsd_acct_struct instance in internal functionskernel/ | +39 | 0 replies | |
| 8/10 | Bsdacct: make bsd_acct_struct per pid namespaceinclude/ kernel/ kernel/ | +71 | 0 replies | |
| 9/10 | Bsdacct: stop accounting for all namespaces on umount timekernel/ | +16 | 0 replies | |
| 10/10 | Bsdacct: account task in each namespace is is visible fromkernel/ | +14 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/10] Make bsd process accounting work in pid namespaces
After I fixed access to task->tgid in kernel/acct.c, Oleg pointed out some bad side effects with this accounting vs pid namespaces interaction.
So here is the approach to make this accounting work with pid namespaces properly.
The idea is simple - when task dies it accounts itself in each namespace it is visible from. That was the summary, the details are in patches.
Signed-off-by Pavel Emelyanov <[email protected]>