As it turned put our scrutch with leaking network devices in
case they cannot be unregistered for too long is broken.

Proper roll back cannot be done via ReadyKernel patch, so
let's just increase leak timeout to 5000 seconds effectively
disabling it (old timeout was 50 sec).

https://jira.sw.ru/browse/PSBM-96057

Signed-off-by: Konstantin Khorenko <[email protected]>
---
 net/core/dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index 0437f7769c98..30cbb37449e3 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -7940,7 +7940,7 @@ static int netdev_wait_allrefs(struct net_device *dev)
                 * in this loop forever not having a chance the VE
                 * to stop.
                 */
-               if (++i > 200) { /* give 50 seconds to try */
+               if (++i > 20000) { /* give 5000 seconds to try */
                        ve_netdev_leak(dev);
                        return -EBUSY;
                }
-- 
2.15.1

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to