Re: [PATCH net] net: avoid weird emergency message

2019-05-16 Thread David Miller
From: Eric Dumazet Date: Thu, 16 May 2019 08:09:57 -0700 > When host is under high stress, it is very possible thread > running netdev_wait_allrefs() returns from msleep(250) > 10 seconds late. > > This leads to these messages in the syslog : > > [...] unregister_netdevice: waiting for syz_tun

[PATCH net] net: avoid weird emergency message

2019-05-16 Thread Eric Dumazet
When host is under high stress, it is very possible thread running netdev_wait_allrefs() returns from msleep(250) 10 seconds late. This leads to these messages in the syslog : [...] unregister_netdevice: waiting for syz_tun to become free. Usage count = 0 If the device refcount is zero, the wait