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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mon, Oct 12, 2015 at 10:47:02PM IDT, razor@xxxxxxxxxxxxx wrote:
>From: Nikolay Aleksandrov <nikolay@xxxxxxxxxxxxxxxxxxx>
>
>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 <nikolay@xxxxxxxxxxxxxxxxxxx>
Reviewed-by: Ido Schimmel <idosch@xxxxxxxxxxxx>



[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux