netns: avoid disabling irq for netns id
authorWANG Cong <[email protected]>
Fri, 2 Sep 2016 04:53:45 +0000 (21:53 -0700)
committerDavid S. Miller <[email protected]>
Sun, 4 Sep 2016 18:39:59 +0000 (11:39 -0700)
commitbc51dddf98c907b598e645ae4b277ed1295b6d5f
treeb12521d7249aac5ba8fbc3515eceff040d11e91b
parent38f507f1ba013effec3d7deb84273ac1829e6b87
netns: avoid disabling irq for netns id

We never read or change netns id in hardirq context,
the only place we read netns id in softirq context
is in vxlan_xmit(). So, it should be enough to just
disable BH.

Cc: Nicolas Dichtel <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/core/net_namespace.c