]> git.baikalelectronics.ru Git - kernel.git/commit
tun: Do SIOCGSKNS out of rtnl_lock()
authorKirill Tkhai <ktkhai@virtuozzo.com>
Tue, 8 May 2018 16:21:34 +0000 (19:21 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 May 2018 19:16:49 +0000 (15:16 -0400)
commit6f7f86b6c76aa9e48a0b545aaa2b4379b40ebbb9
treeb567633555010c51bbf57319d0f925b3533691f0
parentfd06cd515364d34aab85321712d0b8a472a35a5f
tun: Do SIOCGSKNS out of rtnl_lock()

Since net ns of tun device is assigned on the device creation,
and it never changes, we do not need to use any lock to get it
from alive tun.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c