Skip to content

CGroup Files: Add write_string control file method

[email protected] containers lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8CGroup Files: Clean up whitespace in struct cftypeinclude/linux/cgroup.h+16 -160 replies
2/8CGroup Files: Add write_string cgroup control file methodinclude/linux/cgroup.h kernel/cgroup.c+49 -010 replies
3/8CGroup Files: Move the release_agent file to use typed handlersinclude/linux/cgroup.h kernel/cgroup.c+59 -685 replies
4/8CGroup Files: Move notify_on_release file to separate write handlerkernel/cgroup.c+13 -80 replies
5/8CGroup Files: Turn attach_task_by_pid directly into a cgroup write handlerkernel/cgroup.c+14 -660 replies
6/8CGroup Files: Remove cpuset_common_file_write()kernel/cpuset.c+35 -740 replies
7/8CGroup Files: Convert devcgroup_access_write() into a cgroup write_string() handlersecurity/device_cgroup.c+39 -641 reply
8/8CGroup Files: Convert res_counter_write() to be a cgroups write_string() handlerinclude/linux/res_counter.h kernel/res_counter.c mm/memcontrol.c +1 more+38 -670 replies

Reviews trailers per patch

3 of 8 patches have a Reviewed-by or Acked-by.

PatchBalbir SinghSerge Hallyn
1/8
2/8A-b A-b A-b A-b
3/8A-b A-b
4/8
5/8
6/8
7/8A-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] CGroup Files: Add write_string control file method

This is a resend of a patchset that I sent last month, reworked to remove some controversial locking proposals. All locking is now explicit.

This patchset provides:

1) A new write_string() cgroup file method that copies the user's data to kernel space and invokes the relevant handler with the nul-terminated kernelspace buffer

2) A new helper function, cgroup_lock_live_group(), which combines taking the cgroup lock and checking the liveness of a cgroup, to allow simplification of a common lock/check idiom in cgroup file handlers.

3) Conversion of several raw write handlers in cgroup, cpuset, devcgroup and res_counter to use typed handlers and the new locking specifications.

--