On Mon, Mar 21, 2016 at 01:05:09PM -0700, Andy Zhou wrote:
> On Fri, Mar 18, 2016 at 6:08 PM, Ben Pfaff <b...@ovn.org> wrote:
> 
> > On Thu, Mar 03, 2016 at 12:13:24AM -0800, Andy Zhou wrote:
> > > Add a global lock to serialize all OVSDB operations. It is a simple
> > > locking scheme to implement and to reason about correctness, without
> > > much changes to core of OVSDB implementation.
> > >
> > > Signed-off-by: Andy Zhou <az...@ovn.org>
> >
> > I don't understand yet what 'mutex' protects.  Maybe it will become more
> > clear as I read more patches.
> >
> It protects all shared resources. For example, if any sessions shares
> common 'db_mon' objects.
> This lock effectively serializes all sessions request handling. It is
> definitely an overkill, but easier
> to get started with multithreading.  I will add more comments about this.

Thanks.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to