ofproto: Drop 'expirable_mutex' in favor of new global 'ofproto_mutex'.
authorBen Pfaff <blp@nicira.com>
Thu, 12 Sep 2013 07:31:33 +0000 (00:31 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 13 Sep 2013 00:43:56 +0000 (17:43 -0700)
commitabe7b10f58c1d0d1c6c556a89aa6bd9223f56944
tree9942b3eff6762dbb3ece35504127c9155fdf99e5
parent354128521581c03c2d5a01542faf7c0870782d69
ofproto: Drop 'expirable_mutex' in favor of new global 'ofproto_mutex'.

This is the first step toward making a global lock that protects everything
needed for updating the flow table.  This commit starts out by merging one
lock into the new one, and later commits will continue that process.

The mutex is initially a recursive one, because I wasn't sure that there
were no nested acquisitions at this stage, but a later commit will change
it to a regular error-checking mutex once it's settled down a bit.

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