diff options
author | Nikolay Aleksandrov <[email protected]> | 2015-10-12 21:47:02 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-10-13 04:57:52 -0700 |
commit | 907b1e6e83ed25d9dece1e55b704581b6c127051 (patch) | |
tree | e3262a006fb576e8c4866bd6fc5483bd4734bd66 /net/switchdev/switchdev.c | |
parent | 4b918163aecdec1c5424dcc317907282c58838df (diff) |
bridge: vlan: use proper rcu for the vlgrp member
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 held to walk the vlan_list). So make it
official and use RCU for vlgrp to catch offenders. Introduce proper vlgrp
accessors and use them consistently throughout the code.
Signed-off-by: Nikolay Aleksandrov <[email protected]>
Reviewed-by: Ido Schimmel <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions