[ovs-dev] [PATCH] classifier: Update thread safety notes.

Ben Pfaff blp at nicira.com
Sun Nov 3 04:31:30 UTC 2013


Thanks!  Applied to master.

On Sun, Oct 27, 2013 at 07:49:32PM -0700, Alex Wang wrote:
> LGTM
> 
> 
> On Wed, Sep 25, 2013 at 3:38 PM, Ben Pfaff <blp at nicira.com> wrote:
> 
> > Signed-off-by: Ben Pfaff <blp at nicira.com>
> > ---
> >  lib/classifier.h |    6 ++----
> >  1 file changed, 2 insertions(+), 4 deletions(-)
> >
> > diff --git a/lib/classifier.h b/lib/classifier.h
> > index a795b4a..8c77a93 100644
> > --- a/lib/classifier.h
> > +++ b/lib/classifier.h
> > @@ -28,10 +28,8 @@
> >   * Thread-safety
> >   * =============
> >   *
> > - * When locked properly, the classifier is thread safe as long as the
> > following
> > - * conditions are satisfied.
> > - * - Only the main thread calls functions requiring a write lock.
> > - * - Only the main thread is allowed to iterate over rules. */
> > + * The classifier may safely be accessed by many reader threads
> > concurrently or
> > + * by a single writer. */
> >
> >  #include "flow.h"
> >  #include "hmap.h"
> > --
> > 1.7.10.4
> >
> > _______________________________________________
> > dev mailing list
> > dev at openvswitch.org
> > http://openvswitch.org/mailman/listinfo/dev
> >



More information about the dev mailing list