ofproto: Do not postpone closing the mgmt socket
authorDaniele Di Proietto <ddiproietto@vmware.com>
Wed, 1 Oct 2014 18:54:09 +0000 (11:54 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 1 Oct 2014 19:13:51 +0000 (12:13 -0700)
commit58f195398e4d457d2b83b760935a65a70d9b1384
tree9adec548708f4adaab1205d46df8674380774e65
parent538919d3a672eab8a561048acf9a8e1721cd559c
ofproto: Do not postpone closing the mgmt socket

When the bridge datapath_type is changed, ofproto is destroyed and immediately
recreated. This involves closing and reopening the mgmt socket. If the
destruction of the 'connmgr' is postponed, a race condition might happen, where
we first recreate the socket and then try to destroy it.

Reported-by: Daniel Badea <daniel.badea@windriver.com>
Signed-off-by: Daniele Di Proietto <ddiproietto@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c