runc/patch/0050-runc-increase-the-number-of-cgroup-deletion-retries.patch
zhongjiawei e93fcb5f5a runc:symc some patches
(cherry picked from commit 6b3b6fb7d12f8699fd427a6001bf78e0937e1984)
2023-12-22 10:51:30 +08:00

26 lines
827 B
Diff

From 16f5b342ffb42d90e8d7421328709cdc0c3e94d9 Mon Sep 17 00:00:00 2001
From: zhongjiawei <zhongjiawei1@huawei.com>
Date: Thu, 21 Dec 2023 19:51:44 +0800
Subject: [PATCH] runc:increase the number of cgroup deletion retries
---
libcontainer/cgroups/utils.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libcontainer/cgroups/utils.go b/libcontainer/cgroups/utils.go
index b32af4e..00191c2 100644
--- a/libcontainer/cgroups/utils.go
+++ b/libcontainer/cgroups/utils.go
@@ -268,7 +268,7 @@ func RemovePath(path string) error {
// If after all there are not removed cgroups - appropriate error will be
// returned.
func RemovePaths(paths map[string]string) (err error) {
- const retries = 5
+ const retries = 10
delay := 10 * time.Millisecond
for i := 0; i < retries; i++ {
if i != 0 {
--
2.33.0