Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Duda <[email protected]>
  • Loading branch information
Tomasz Duda committed Nov 6, 2024
1 parent 91c54ed commit 7983199
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcontainer/cgroups/fs/cpuset.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ func getCpusetFile(path string, name string) string {

// only allowed cgroup to mount with no prefix is v1 cpuset
// https://github.com/torvalds/linux/blob/2e1b3cc9d7f790145a80cb705b168f05dab65df2/kernel/cgroup/cgroup-v1.c#L1070
// it cannot be mounted with and without prefix at the same time. it happens to be used on Android.
// it cannot be mounted with and without prefix at the same time
// it happens to be used on Android.

if !cpusetFastPath {
fd, err := cgroups.OpenFile(path, "cpuset."+name, unix.O_RDONLY)
Expand Down

0 comments on commit 7983199

Please sign in to comment.