Skip to content

Commit

Permalink
backport of commit 00e3886
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain committed Jun 15, 2023
1 parent f53323f commit ab2a81c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/17535.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
cgroups: Fixed a bug removing all DevicesSets when alloc is created/removed
```
3 changes: 2 additions & 1 deletion client/lib/cgutil/cpuset_manager_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,8 @@ func (c *cpusetManagerV2) write(id identity, set cpuset.CPUSet) {

// set the cpuset value for the cgroup
if err = m.Set(&configs.Resources{
CpusetCpus: set.String(),
CpusetCpus: set.String(),
SkipDevices: true,
}); err != nil {
c.logger.Error("failed to set cgroup", "path", path, "error", err)
return
Expand Down

0 comments on commit ab2a81c

Please sign in to comment.