[rh7] net: avoid leaking network devices (ReadyKernel patch)

Submitted by Konstantin Khorenko on July 11, 2019, 3:53 p.m.

Details

Message ID 20190711155335.26428-1-khorenko@virtuozzo.com
State New
Series "net: avoid leaking network devices (ReadyKernel patch)"
Headers show

Commit Message

Konstantin Khorenko July 11, 2019, 3:53 p.m.
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 <khorenko@virtuozzo.com>
---
 net/core/dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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;
 		}