]> git.baikalelectronics.ru Git - kernel.git/commit
netns: make nsid_lock per net
authorWANG Cong <xiyou.wangcong@gmail.com>
Fri, 15 May 2015 21:47:32 +0000 (14:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 May 2015 03:41:11 +0000 (23:41 -0400)
commite9c0408d8607d8be12988265c2a0138c6ad47ba8
treee39d1ddfa88dba0fa77a908513b392648c7e5bda
parentb204dfbda31438f971f00b17c7592eb532fc8c0c
netns: make nsid_lock per net

The spinlock is used to protect netns_ids which is per net,
so there is no need to use a global spinlock.

Cc: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/net_namespace.h
net/core/net_namespace.c