Re: [ovs-dev] [PATCHv2] ofproto/bond: Protect statistics with writelock.

2014-04-14 Thread Andy Zhou
Pushed. Thanks for the fix! On Mon, Apr 14, 2014 at 3:36 AM, Joe Stringer wrote: > From: Joe Stringer > > dcf00ba35a0 (ofproto/bond: Implement bond megaflow using recirculation) > allowed bond_entry statistics to be modified while holding a readlock. > This patch modifies bond_entry_account() to

[ovs-dev] [PATCHv2] ofproto/bond: Protect statistics with writelock.

2014-04-14 Thread Joe Stringer
From: Joe Stringer dcf00ba35a0 (ofproto/bond: Implement bond megaflow using recirculation) allowed bond_entry statistics to be modified while holding a readlock. This patch modifies bond_entry_account() to get a writelock before modifying the statistics and adds thread-safety annotations to these