]> 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)
commit9d7a122adb9e36f69b0c964a9072fb4262269879
treeb567633555010c51bbf57319d0f925b3533691f0
parentec3ce6ae1cbc55fe9a53f4e50ce1838568cf6b94
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