]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Revert "cgroups: fix cpu bitmasks"
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 13 Aug 2021 19:35:30 +0000 (21:35 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 13 Aug 2021 19:35:30 +0000 (21:35 +0200)
This reverts commit e0f7296a6d537f0d2eb5fbc6d7f9e007d11d516a.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index e57e816ea7d7fefe139db8e101d86d90815bee18..d83c29c6869ac553524bbd45b72a3a8b7cdaed83 100644 (file)
@@ -596,6 +596,7 @@ static bool cpuset1_cpus_initialize(int dfd_parent, int dfd_child,
 
                if (maxposs < maxisol)
                        maxposs = maxisol;
+               maxposs++;
        } else {
                TRACE("The path \""__ISOL_CPUS"\" to read isolated cpus from does not exist");
        }
@@ -614,6 +615,7 @@ static bool cpuset1_cpus_initialize(int dfd_parent, int dfd_child,
 
                if (maxposs < maxoffline)
                        maxposs = maxoffline;
+               maxposs++;
        } else {
                TRACE("The path \""__OFFLINE_CPUS"\" to read offline cpus from does not exist");
        }