ofproto/bond: Protect statistics with writelock.
authorJoe Stringer <joestringer@nicira.com>
Mon, 14 Apr 2014 18:36:21 +0000 (18:36 +0000)
committerAndy Zhou <azhou@nicira.com>
Tue, 15 Apr 2014 00:30:46 +0000 (17:30 -0700)
commitc6855ec5147dd801875ff3bb8959b9d2d7bc5bb0
treebb6c6e017e40031f061ac0fe98c8c70824abfa5e
parent9e1a6910c2a758b0b87d5f86c8645baee553cadb
ofproto/bond: Protect statistics with writelock.

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
fields and relevant functions.

Signed-off-by: Joe Stringer <joestringer@nicira.com>
Signed-off-by: Andy Zhou <azhou@nicira.com>¬
ofproto/bond.c