]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: avoid weird emergency message
authorEric Dumazet <edumazet@google.com>
Thu, 16 May 2019 15:09:57 +0000 (08:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 10:23:43 +0000 (12:23 +0200)
commitb2f72a43114261387b943fa1ba364e97acba6e59
tree213410b68a35880d42050e01a9466f330cf83bdc
parent70064f7ea1005694a3898950bdce6b9ee3869ca3
net: avoid weird emergency message

[ Upstream commit d7c04b05c9ca14c55309eb139430283a45c4c25f ]

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 is over.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/dev.c