connmgr: Formalize 'ofproto_mutex' as protecting ofconn monitor data.
authorBen Pfaff <blp@nicira.com>
Fri, 11 Oct 2013 06:11:09 +0000 (23:11 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 11 Oct 2013 17:13:50 +0000 (10:13 -0700)
commitce0b645549936aba07fe0059acbe3046a63c91bc
treef8bef76d667f034d1eca8d0d3d0c107d586f6ec8
parentdb380609b9a41f50e642cd931f6840fbcb11f5bb
connmgr: Formalize 'ofproto_mutex' as protecting ofconn monitor data.

'ofproto_mutex' has effectively protected the monitor-related members of
struct ofconn since its introduction, but this was not written down or
systematically annotated.  This commit makes it more systematic and fixes
a few issues found using the annotations.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/connmgr.c
ofproto/connmgr.h
ofproto/ofproto.c