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

Alex Wang alexw at nicira.com
Mon Oct 28 02:49:32 UTC 2013


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20131027/665bb19e/attachment-0003.html>


More information about the dev mailing list