]> git.baikalelectronics.ru Git - kernel.git/commit
net: allow to kill a task which waits net_mutex in copy_new_ns
authorAndrey Vagin <avagin@openvz.org>
Fri, 21 Oct 2016 02:45:43 +0000 (19:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Oct 2016 21:33:39 +0000 (17:33 -0400)
commit172482a3e290cb0ed01ad1c95a9cd5b30053f422
tree868b3edae32487a1fc7d9662dc5d52768160a693
parentb369f15bf96ce11346d6e1a0226de12824c9a66a
net: allow to kill a task which waits net_mutex in copy_new_ns

net_mutex can be locked for a long time. It may be because many
namespaces are being destroyed or many processes decide to create
a network namespace.

Both these operations are heavy, so it is better to have an ability to
kill a process which is waiting net_mutex.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrei Vagin <avagin@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c