Skip to content

Commit

Permalink
rdt: stop trying to get container cgroup dir
Browse files Browse the repository at this point in the history
We don't use that information for anything. In an error case we'll get
the same error from container.GetProcesses() later anyway.
  • Loading branch information
marquiz committed Feb 17, 2023
1 parent 4674927 commit 61acbd7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/cri/resource-manager/control/rdt/rdt.go
Expand Up @@ -194,12 +194,6 @@ func (ctl *rdtctl) assignClass(c cache.Container, class string) error {
return rdtError("%q: failed to get pod", c.PrettyName())
}

dir := c.GetCgroupDir()
if dir == "" {
return rdtError("%q: failed to determine cgroup directory",
c.PrettyName())
}

pids, err := c.GetProcesses()
if err != nil {
return rdtError("%q: failed to get process list: %v", c.PrettyName(), err)
Expand Down

0 comments on commit 61acbd7

Please sign in to comment.