]> git.baikalelectronics.ru Git - kernel.git/commit
netns: always provide the id to rtnl_net_fill()
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Thu, 7 May 2015 09:02:48 +0000 (11:02 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 May 2015 02:15:30 +0000 (22:15 -0400)
commitb67e711725b4f2a941d5e612ec1b9fae52475b16
tree179b8dcb28cc08aa6461546497eed1db38cf34f0
parent081d0879dfccba08beb39ffd1cf5c16b0fca6920
netns: always provide the id to rtnl_net_fill()

The goal of this commit is to prepare the rework of the locking of nsnid
protection.
After this patch, rtnl_net_notifyid() will not call anymore __peernet2id(),
ie no idr_* operation into this function.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c