-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cgroupv1/Apply: do not overuse path/getSubsystemPath
When paths are already set, we only need to place the PID into proper cgroups, and we already know all the cgroups path. The fs function d.path(), and the systemd v1 function getSubsystemPath() are both parsing /proc/self/mountinfo, and the only reason they are used here is to check whether the subsystem is available. Use a much simpler check instead. Frankly, I am not sure why the check is needed at all. Maybe we just need to drop it altogether. Signed-off-by: Kir Kolyshkin <[email protected]>
- Loading branch information
Showing
2 changed files
with
10 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters