[PATCH net-next 1/4] bridge: vlan: use proper rcu for the vlgrp member

2015-10-12 Thread Nikolay Aleksandrov
From: Nikolay Aleksandrov The bridge and port's vlgrp member is already used in RCU way, currently we rely on the fact that it cannot disappear while the port exists but that is error-prone and we might miss places with improper locking (either RCU or RTNL must be

Re: [PATCH net-next 1/4] bridge: vlan: use proper rcu for the vlgrp member

2015-10-12 Thread Ido Schimmel
Mon, Oct 12, 2015 at 02:41:06PM IDT, ra...@blackwall.org wrote: >From: Nikolay Aleksandrov > Hi Nik, Small nitpick: >@@ -825,17 +848,19 @@ unlock: > > int br_vlan_init(struct net_bridge *br) > { >+ struct net_bridge_vlan_group *vg; > int ret = -ENOMEM;