From c1672b5e35bcc8f02bd1e1ad4964ad114bf28972 Mon Sep 17 00:00:00 2001
From: zhongjiawei <zhongjiawei1@huawei.com>
Date: Thu, 21 Dec 2023 19:38:04 +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 fc4ae44..a359740 100644
--- a/libcontainer/cgroups/utils.go
+++ b/libcontainer/cgroups/utils.go
@@ -270,7 +270,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

