CGroup Files: Add write_string control file method
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest8 patches 16 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | CGroup Files: Clean up whitespace in struct cftypeinclude/ | +16 | 0 replies | |
| 2/8 | CGroup Files: Add write_string cgroup control file methodinclude/ kernel/ | +49 | 10 replies | |
| 3/8 | CGroup Files: Move the release_agent file to use typed handlersinclude/ kernel/ | +59 | 5 replies | |
| 4/8 | CGroup Files: Move notify_on_release file to separate write handlerkernel/ | +13 | 0 replies | |
| 5/8 | CGroup Files: Turn attach_task_by_pid directly into a cgroup write handlerkernel/ | +14 | 0 replies | |
| 6/8 | CGroup Files: Remove cpuset_common_file_write()kernel/ | +35 | 0 replies | |
| 7/8 | CGroup Files: Convert devcgroup_access_write() into a cgroup write_string() handlersecurity/ | +39 | 1 reply | |
| 8/8 | CGroup Files: Convert res_counter_write() to be a cgroups write_string() handlerinclude/ kernel/ mm/ +1 more | +38 | 0 replies |
Reviews trailers per patch
3 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Balbir Singh | Serge Hallyn |
|---|---|---|
| 1/8 | ||
| 2/8 | A-b A-b | A-b A-b |
| 3/8 | A-b A-b | |
| 4/8 | ||
| 5/8 | ||
| 6/8 | ||
| 7/8 | A-b | |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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.
--